<?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"
	>
<channel>
	<title>Comments on: Javascript: Exploding a string into an array</title>
	<atom:link href="http://www.scriptygoddess.com/archives/2003/06/26/javascript-exploding-a-string-into-an-array/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.scriptygoddess.com/archives/2003/06/26/javascript-exploding-a-string-into-an-array/</link>
	<description></description>
	<pubDate>Fri, 08 Aug 2008 19:38:27 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: ian ward</title>
		<link>http://www.scriptygoddess.com/archives/2003/06/26/javascript-exploding-a-string-into-an-array/#comment-10134</link>
		<dc:creator>ian ward</dc:creator>
		<pubDate>Tue, 30 Nov 1999 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.scriptygoddess.com/archives/2003/06/26/javascript-exploding-a-string-into-an-array/#comment-10134</guid>
		<description>wow, not only are you adding tempArray inside that function to the global namespace, but that function is just horrible...

IE and Moz support the split method.

var tokens = str.split(delim);

if your javascript implementation doesn't support split on strings, add it:

String.prototype.split = function(delim)
{
   // your split code here. (hopefully using RegExp)
};

now all your strings will have this capability.
</description>
		<content:encoded><![CDATA[<p>wow, not only are you adding tempArray inside that function to the global namespace, but that function is just horrible&#8230;</p>
<p>IE and Moz support the split method.</p>
<p>var tokens = str.split(delim);</p>
<p>if your javascript implementation doesn&#8217;t support split on strings, add it:</p>
<p>String.prototype.split = function(delim)<br />
{<br />
   // your split code here. (hopefully using RegExp)<br />
};</p>
<p>now all your strings will have this capability.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.235 seconds -->
