N
noagbodjivictor
IE6 refuses to split my text at '\n'. It acts like there is no
newlines at, while the script is working finely in FF.
var thetext = $$('#thetable tr td.textarea')
[0].childNodes[0].data;
var thelines = new Array();
thetext.replace(/\n/,':');
alert(thetext);
thelines = thetext.split(':');
alert(thelines[0]);
var longuest = thelines[0].length;
for(var i = 0; i < thelines.length; i++){
longuest = (thelines.length>longuest) ? thelines.length :
longuest;
}
I have placed those alerts to see what's happening. The text is:
The files in this directory are necessary for GVim Portable to
function.
There is normally no need to directly access or alter any of
the files
within these directories.
Do you have an idea?
newlines at, while the script is working finely in FF.
var thetext = $$('#thetable tr td.textarea')
[0].childNodes[0].data;
var thelines = new Array();
thetext.replace(/\n/,':');
alert(thetext);
thelines = thetext.split(':');
alert(thelines[0]);
var longuest = thelines[0].length;
for(var i = 0; i < thelines.length; i++){
longuest = (thelines.length>longuest) ? thelines.length :
longuest;
}
I have placed those alerts to see what's happening. The text is:
The files in this directory are necessary for GVim Portable to
function.
There is normally no need to directly access or alter any of
the files
within these directories.
Do you have an idea?