<?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>Sat, 20 Mar 2010 19:29:00 -0500</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: aavsa</title>
		<link>http://www.n8williams.com/devblog/javascript_and_ajax/jquery-dialog-error-in-ie7-runtime-error-invalid-argument/comment-page-1#comment-2660</link>
		<dc:creator>aavsa</dc:creator>
		<pubDate>Sat, 20 Mar 2010 19:29:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.n8williams.com/devblog/?p=44#comment-2660</guid>
		<description>John thank you very much its worked on ie8

line 116 change
f[b]=d;
to
try{f[b]=d;}catch (error){};</description>
		<content:encoded><![CDATA[<p>John thank you very much its worked on ie8</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-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>
	<item>
		<title>By: Adam</title>
		<link>http://www.n8williams.com/devblog/javascript_and_ajax/jquery-dialog-error-in-ie7-runtime-error-invalid-argument/comment-page-1#comment-77</link>
		<dc:creator>Adam</dc:creator>
		<pubDate>Mon, 01 Dec 2008 08:23:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.n8williams.com/devblog/?p=44#comment-77</guid>
		<description>Also mine was coming up with NaNem

Look out for that one too.</description>
		<content:encoded><![CDATA[<p>Also mine was coming up with NaNem</p>
<p>Look out for that one too.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adam</title>
		<link>http://www.n8williams.com/devblog/javascript_and_ajax/jquery-dialog-error-in-ie7-runtime-error-invalid-argument/comment-page-1#comment-76</link>
		<dc:creator>Adam</dc:creator>
		<pubDate>Mon, 01 Dec 2008 08:15:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.n8williams.com/devblog/?p=44#comment-76</guid>
		<description>Brilliant! This was annoying the crap out of me.</description>
		<content:encoded><![CDATA[<p>Brilliant! This was annoying the crap out of me.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

