<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: jQuery Dialog error in IE7. Runtime error: invalid argument</title>
	<atom:link href="http://www.n8williams.com/devblog/javascript_and_ajax/jquery-dialog-error-in-ie7-runtime-error-invalid-argument/feed" rel="self" type="application/rss+xml" />
	<link>http://www.n8williams.com/devblog/javascript_and_ajax/jquery-dialog-error-in-ie7-runtime-error-invalid-argument</link>
	<description>A knowledge base for simple (and beyond) web applications development</description>
	<lastBuildDate>Fri, 23 Jul 2010 14:03:31 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Joshua</title>
		<link>http://www.n8williams.com/devblog/javascript_and_ajax/jquery-dialog-error-in-ie7-runtime-error-invalid-argument/comment-page-1#comment-3812</link>
		<dc:creator>Joshua</dc:creator>
		<pubDate>Fri, 23 Jul 2010 14:03:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.n8williams.com/devblog/?p=44#comment-3812</guid>
		<description>I just want to note that the correct way to fix this problem is described by #4 Brinley, #11 Ezequiel, #13 Jaysap.  Find out which value is being accessed and returning NaN with FireBug (or Developer Tools) and set it to 0.  In my case this was border and it was fixed by adding style=&quot;border:0;&quot; to my span.</description>
		<content:encoded><![CDATA[<p>I just want to note that the correct way to fix this problem is described by #4 Brinley, #11 Ezequiel, #13 Jaysap.  Find out which value is being accessed and returning NaN with FireBug (or Developer Tools) and set it to 0.  In my case this was border and it was fixed by adding style=&#8221;border:0;&#8221; to my span.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mattias Petter Johansson</title>
		<link>http://www.n8williams.com/devblog/javascript_and_ajax/jquery-dialog-error-in-ie7-runtime-error-invalid-argument/comment-page-1#comment-3780</link>
		<dc:creator>Mattias Petter Johansson</dc:creator>
		<pubDate>Thu, 15 Jul 2010 12:42:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.n8williams.com/devblog/?p=44#comment-3780</guid>
		<description>I ran into this issue, but my solution was completely different - it was a spacer div that by mistake had it&#039;s ID attribute set instead of it&#039;s class. Once I fixed that, it worked. Very funky.</description>
		<content:encoded><![CDATA[<p>I ran into this issue, but my solution was completely different &#8211; it was a spacer div that by mistake had it&#8217;s ID attribute set instead of it&#8217;s class. Once I fixed that, it worked. Very funky.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tiago Fischer</title>
		<link>http://www.n8williams.com/devblog/javascript_and_ajax/jquery-dialog-error-in-ie7-runtime-error-invalid-argument/comment-page-1#comment-2923</link>
		<dc:creator>Tiago Fischer</dc:creator>
		<pubDate>Fri, 23 Apr 2010 22:55:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.n8williams.com/devblog/?p=44#comment-2923</guid>
		<description>You can simple debug and try to find the problem:
try{style[ name ] = value;} catch (error){ alert(name + &#039; - &#039; + value };

I had an error on IE8 when try to set the &#039;top&#039; property with the value &#039;auto &#039;. (with a space at the end)
It&#039;s seems that IE can&#039;t handle any extra spaces on the value.</description>
		<content:encoded><![CDATA[<p>You can simple debug and try to find the problem:<br />
try{style[ name ] = value;} catch (error){ alert(name + &#8216; &#8211; &#8216; + value };</p>
<p>I had an error on IE8 when try to set the &#8216;top&#8217; property with the value &#8216;auto &#8216;. (with a space at the end)<br />
It&#8217;s seems that IE can&#8217;t handle any extra spaces on the value.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: john</title>
		<link>http://www.n8williams.com/devblog/javascript_and_ajax/jquery-dialog-error-in-ie7-runtime-error-invalid-argument/comment-page-1#comment-2572</link>
		<dc:creator>john</dc:creator>
		<pubDate>Fri, 05 Mar 2010 10:29:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.n8williams.com/devblog/?p=44#comment-2572</guid>
		<description>and for info if using the minified version

line 116 change   
f[b]=d;
to 
try{f[b]=d;}catch (error){};</description>
		<content:encoded><![CDATA[<p>and for info if using the minified version</p>
<p>line 116 change<br />
f[b]=d;<br />
to<br />
try{f[b]=d;}catch (error){};</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: john</title>
		<link>http://www.n8williams.com/devblog/javascript_and_ajax/jquery-dialog-error-in-ie7-runtime-error-invalid-argument/comment-page-1#comment-2571</link>
		<dc:creator>john</dc:creator>
		<pubDate>Fri, 05 Mar 2010 10:23:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.n8williams.com/devblog/?p=44#comment-2571</guid>
		<description>This still turns up as a problem even now 05.03.2010 with jquery 1.4.2 !

Big heads up to dave that works !

At line 4618 let it be so 

try{style[ name ] = value;} catch (error){};</description>
		<content:encoded><![CDATA[<p>This still turns up as a problem even now 05.03.2010 with jquery 1.4.2 !</p>
<p>Big heads up to dave that works !</p>
<p>At line 4618 let it be so </p>
<p>try{style[ name ] = value;} catch (error){};</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael</title>
		<link>http://www.n8williams.com/devblog/javascript_and_ajax/jquery-dialog-error-in-ie7-runtime-error-invalid-argument/comment-page-1#comment-2075</link>
		<dc:creator>Michael</dc:creator>
		<pubDate>Thu, 17 Dec 2009 20:43:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.n8williams.com/devblog/?p=44#comment-2075</guid>
		<description>#12 Dave - Thanks so much man. This fixed my IE7 issues. I want to kiss you</description>
		<content:encoded><![CDATA[<p>#12 Dave &#8211; Thanks so much man. This fixed my IE7 issues. I want to kiss you</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jaysap</title>
		<link>http://www.n8williams.com/devblog/javascript_and_ajax/jquery-dialog-error-in-ie7-runtime-error-invalid-argument/comment-page-1#comment-1466</link>
		<dc:creator>Jaysap</dc:creator>
		<pubDate>Thu, 22 Oct 2009 16:12:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.n8williams.com/devblog/?p=44#comment-1466</guid>
		<description>Simply adding

*{ border: 0 }

to your css file fixes it.</description>
		<content:encoded><![CDATA[<p>Simply adding</p>
<p>*{ border: 0 }</p>
<p>to your css file fixes it.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://www.n8williams.com/devblog/javascript_and_ajax/jquery-dialog-error-in-ie7-runtime-error-invalid-argument/comment-page-1#comment-1103</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Thu, 10 Sep 2009 15:18:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.n8williams.com/devblog/?p=44#comment-1103</guid>
		<description>line 1065 and 1002
elem[ name ] = value;

change this to
try{elem[ name ] = value;} catch (error){};</description>
		<content:encoded><![CDATA[<p>line 1065 and 1002<br />
elem[ name ] = value;</p>
<p>change this to<br />
try{elem[ name ] = value;} catch (error){};</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ezequiel Muns</title>
		<link>http://www.n8williams.com/devblog/javascript_and_ajax/jquery-dialog-error-in-ie7-runtime-error-invalid-argument/comment-page-1#comment-1071</link>
		<dc:creator>Ezequiel Muns</dc:creator>
		<pubDate>Fri, 28 Aug 2009 01:24:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.n8williams.com/devblog/?p=44#comment-1071</guid>
		<description>All these errors (including &#039;NaNem&#039; and &quot;0 NaNpx 0 40px&quot;) are because you are giving jQuery the wrong values. The fix should not require you to change jQuery, otherwise the IE version of your script will simply have less features (since the incorrect values are simply discarded rather than set correctly).

I run into this problem and it was both because IE&#039;s default for margins is &#039;auto&#039;, and for borders its &#039;medium&#039;. 

If you&#039;re going to be using these values, be sure to set them first (in JS, or the CSS/HTML) or don&#039;t assume they will be numerical!.

I used:
margin: 0;
border-width: 0;
On the div in question and it was all smooth saling from then on.</description>
		<content:encoded><![CDATA[<p>All these errors (including &#8216;NaNem&#8217; and &#8220;0 NaNpx 0 40px&#8221;) are because you are giving jQuery the wrong values. The fix should not require you to change jQuery, otherwise the IE version of your script will simply have less features (since the incorrect values are simply discarded rather than set correctly).</p>
<p>I run into this problem and it was both because IE&#8217;s default for margins is &#8216;auto&#8217;, and for borders its &#8216;medium&#8217;. </p>
<p>If you&#8217;re going to be using these values, be sure to set them first (in JS, or the CSS/HTML) or don&#8217;t assume they will be numerical!.</p>
<p>I used:<br />
margin: 0;<br />
border-width: 0;<br />
On the div in question and it was all smooth saling from then on.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jamie McDonnell</title>
		<link>http://www.n8williams.com/devblog/javascript_and_ajax/jquery-dialog-error-in-ie7-runtime-error-invalid-argument/comment-page-1#comment-195</link>
		<dc:creator>Jamie McDonnell</dc:creator>
		<pubDate>Mon, 12 Jan 2009 13:59:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.n8williams.com/devblog/?p=44#comment-195</guid>
		<description>Hmmm, I&#039;m back, I got the same problem crop up again, this time value was equal to &quot;0 NaNpx 0 40px&quot; so I modified my fix as follows:

if ( value != ‘NaNpx’ &amp;&amp; value != undefined &amp;&amp; value != ‘none’ &amp;&amp; value.indexOf(&#039;NaNpx&#039;) == -1 )
elem[ name ] = value; //NATE - Sometimes the value would come up as NaNpx in IE and causes an error

This checks for the existance of NaNpx anywhere in the value string. For now this has done the job, and I guess in any string that NaNpx shows up in this context it should hold water.

Hope it helps ;)

J</description>
		<content:encoded><![CDATA[<p>Hmmm, I&#8217;m back, I got the same problem crop up again, this time value was equal to &#8220;0 NaNpx 0 40px&#8221; so I modified my fix as follows:</p>
<p>if ( value != ‘NaNpx’ &amp;&amp; value != undefined &amp;&amp; value != ‘none’ &amp;&amp; value.indexOf(&#8217;NaNpx&#8217;) == -1 )<br />
elem[ name ] = value; //NATE &#8211; Sometimes the value would come up as NaNpx in IE and causes an error</p>
<p>This checks for the existance of NaNpx anywhere in the value string. For now this has done the job, and I guess in any string that NaNpx shows up in this context it should hold water.</p>
<p>Hope it helps <img src='http://www.n8williams.com/devblog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>J</p>
]]></content:encoded>
	</item>
</channel>
</rss>
