<?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: Internet Explorer, forms, JavaScript and null</title>
	<atom:link href="http://the-stickman.com/web-development/internet-explorer-forms-javascript-and-null/feed/" rel="self" type="application/rss+xml" />
	<link>http://the-stickman.com/web-development/internet-explorer-forms-javascript-and-null/</link>
	<description>Random developer notes</description>
	<lastBuildDate>Wed, 03 Aug 2011 09:35:01 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
	<item>
		<title>By: gphilip</title>
		<link>http://the-stickman.com/web-development/internet-explorer-forms-javascript-and-null/comment-page-1/#comment-1479</link>
		<dc:creator>gphilip</dc:creator>
		<pubDate>Thu, 07 Oct 2010 11:17:37 +0000</pubDate>
		<guid isPermaLink="false">http://the-stickman.com/web-development/internet-explorer-forms-javascript-and-null/#comment-1479</guid>
		<description>If you use jQuery, this might help in some cases (and similar to text() and html().

overrideValToHandleNullIe: function()
	{
		// Store a reference to the original remove method.
		var originalValMethod = jQuery.fn.val;

		// Define overriding method.
		jQuery.fn.val = function(){
			if ( null === arguments[0] )
			{
				arguments[0] = &#039;&#039;;
			}

			// Execute the original method.
			return originalValMethod.apply( this, arguments );
		}
	}</description>
		<content:encoded><![CDATA[<p>If you use jQuery, this might help in some cases (and similar to text() and html().</p>
<p>overrideValToHandleNullIe: function()<br />
	{<br />
		// Store a reference to the original remove method.<br />
		var originalValMethod = jQuery.fn.val;</p>
<p>		// Define overriding method.<br />
		jQuery.fn.val = function(){<br />
			if ( null === arguments[0] )<br />
			{<br />
				arguments[0] = &#8221;;<br />
			}</p>
<p>			// Execute the original method.<br />
			return originalValMethod.apply( this, arguments );<br />
		}<br />
	}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Phantom</title>
		<link>http://the-stickman.com/web-development/internet-explorer-forms-javascript-and-null/comment-page-1/#comment-768</link>
		<dc:creator>Phantom</dc:creator>
		<pubDate>Wed, 18 Oct 2006 09:02:30 +0000</pubDate>
		<guid isPermaLink="false">http://the-stickman.com/web-development/internet-explorer-forms-javascript-and-null/#comment-768</guid>
		<description>Wait until you start to play with IE7 - which I suggest you do NOW, as it&#039;s a high-priority automatic update being released by MS before the end of this month (October 2006).

So far I have had an Outlook style menu bar completely fail to render in IE7 and NOTHING will fix it. Its a frightening time!

Start checking and start checking NOW!</description>
		<content:encoded><![CDATA[<p>Wait until you start to play with IE7 &#8211; which I suggest you do NOW, as it&#8217;s a high-priority automatic update being released by MS before the end of this month (October 2006).</p>
<p>So far I have had an Outlook style menu bar completely fail to render in IE7 and NOTHING will fix it. Its a frightening time!</p>
<p>Start checking and start checking NOW!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan G. Switzer, II</title>
		<link>http://the-stickman.com/web-development/internet-explorer-forms-javascript-and-null/comment-page-1/#comment-767</link>
		<dc:creator>Dan G. Switzer, II</dc:creator>
		<pubDate>Fri, 13 Oct 2006 16:23:30 +0000</pubDate>
		<guid isPermaLink="false">http://the-stickman.com/web-development/internet-explorer-forms-javascript-and-null/#comment-767</guid>
		<description>While Firefox seems like the most practical solution, technically a text field can&#039;t be null. IE is just making it&#039;s best guess at casting the null into something that makes since to a string. Just out of curiousity, I wonder what would happen if you run the toString() method on a variable that is null. I&#039;m guessing IE kicks back the string &quot;null&quot;.</description>
		<content:encoded><![CDATA[<p>While Firefox seems like the most practical solution, technically a text field can&#8217;t be null. IE is just making it&#8217;s best guess at casting the null into something that makes since to a string. Just out of curiousity, I wonder what would happen if you run the toString() method on a variable that is null. I&#8217;m guessing IE kicks back the string &#8220;null&#8221;.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

