Menu
Can anyone tell me why the replace function and other string functions like substring and slice are not working for me on any other browser but IE? They are supposed to be supported by other browsers. Here is an example of my code:
txt = txt.replace(/’/g, “\'”);
txt = txt.replace(/r/g, ” “);
txt = txt.replace(/n/g, ” ¶ “);
Any idea of what I am doing wrong? The Javascript Console in Firefox 1.0.4 gives the following error:
txt.replace is not a function
The URL to the script in action is:
[url]http://www.iddl.vt.edu/~rfentres/flashreader/js/index.htm
Thanks,
Rob