<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>hibbins.com &#187; Javascript</title>
	<atom:link href="http://www.hibbins.com/category/softwaredevelopment/code/javascript/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hibbins.com</link>
	<description>Software Development: C#, SQL Server, .NET, Analysis Services, Reporting Services, Intergration Services, OLAP, PHP, HTML, XML, CSS, Java, Javascript and anything else technical, complex and hibbins.com</description>
	<lastBuildDate>Wed, 04 Jan 2012 11:42:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Check if a Javascript function exists</title>
		<link>http://www.hibbins.com/2009/03/22/check-if-a-javascript-function-exists/</link>
		<comments>http://www.hibbins.com/2009/03/22/check-if-a-javascript-function-exists/#comments</comments>
		<pubDate>Sun, 22 Mar 2009 13:40:23 +0000</pubDate>
		<dc:creator>Jon Hibbins</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[Quick Tips]]></category>
		<category><![CDATA[Call]]></category>
		<category><![CDATA[Check]]></category>
		<category><![CDATA[Exists]]></category>
		<category><![CDATA[Function]]></category>

		<guid isPermaLink="false">http://www.hibbins.com/?p=212</guid>
		<description><![CDATA[If you want to check if a Javascript function exists before you attempt to call it and get an error try: // Check if a Javascript function exists and run it if it does if&#40;typeof window.Function == 'function'&#41; &#123; Function&#40;&#41;; &#125;]]></description>
			<content:encoded><![CDATA[<p>If you want to check if a Javascript function exists before you attempt to call it and get an error try:</p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;"><span style="color: #006600; font-style: italic;">// Check if a Javascript function exists and run it if it does</span>
<span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">typeof</span> window.<span style="color: #003366; font-weight: bold;">Function</span> <span style="color: #339933;">==</span> <span style="color: #3366CC;">'function'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #003366; font-weight: bold;">Function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fwww.hibbins.com%2F2009%2F03%2F22%2Fcheck-if-a-javascript-function-exists%2F';
  addthis_title  = 'Check+if+a+Javascript+function+exists';
  addthis_pub    = 'JHibbins';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
]]></content:encoded>
			<wfw:commentRss>http://www.hibbins.com/2009/03/22/check-if-a-javascript-function-exists/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

