mdm-adph
20 Sep 2007, 12:57 PM
Okay, so what's the deal with the split function on IE?
If I have a tab-delimited list stored in a field (I'm later turning it into a data.Store), and I split each line with a Split() function, I get different results in IE and Firefox depending upon the delimiter string I use, if there are empty string values present. Example:
Delimited String: (value)\t(value)\t\t\t(value)
String.split("\t") in Firefox: [(value), (value), (empty), (empty), (value)]
String.split("\t") in IE: [(value), (value), (empty), (empty), (value)]
String.split(/\t/) in Firefox: [(value), (value), (empty), (empty), (value)]
String.split(/\t/) in IE: [(value), (value), (value)]
What am I missing, eh?
If I have a tab-delimited list stored in a field (I'm later turning it into a data.Store), and I split each line with a Split() function, I get different results in IE and Firefox depending upon the delimiter string I use, if there are empty string values present. Example:
Delimited String: (value)\t(value)\t\t\t(value)
String.split("\t") in Firefox: [(value), (value), (empty), (empty), (value)]
String.split("\t") in IE: [(value), (value), (empty), (empty), (value)]
String.split(/\t/) in Firefox: [(value), (value), (empty), (empty), (value)]
String.split(/\t/) in IE: [(value), (value), (value)]
What am I missing, eh?