Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- Opera question


David - 10:01 pm on Jul 31, 2001 (gmt 0)


The problem is that the filters array is only valid with IE. What you have run into is one of the difficulties in scripting for Opera. Alot of scripts use the document.all test to test for IE. When Opera is in MSIE mode it passes the test and fails at the function.

Do you need the IE specific part of the function, another words get rid of the document.all stuff. I think IE will run the function (can't be sure with out testing).

The only other suggestion would be to test for another object maybe the filters array directly(Opera might choke on it also)

Sorry I can't be of more help, maybe someone else can give you a replacement test.
David


Thread source:: http://www.webmasterworld.com/javascript/654.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com