-
IE's indexOf problems.
I was having trouble with indexOf() and IE6 (worked fine in FF and Safari), and Google led me to this:
http://developer.mozilla.org/En/Core...#Compatibility
That snippet fixed the problem in IE. Is this always necessary when using indexOf? Is it because of the array? Here is the code:
oIndex = compareVINs.indexOf(oQuery);
Where compareVINs is an array, and oQuery is a string.
-
-
Yes. JScript does not implement Array.prototype.indexOf, which is a non-standard Mozilla extension. String.prototype.indexOf still exists.
-
The Following User Says Thank You to Twey For This Useful Post:
-
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks