Welcome to WebmasterWorld Guest from 54.226.133.245

Forum Moderators: open

Message Too Old, No Replies

Javascript in Netscape 6.01

Need help with javascript on an intranet

     
2:03 pm on Mar 7, 2002 (gmt 0)

New User

10+ Year Member

joined:Feb 15, 2005
posts:2
votes: 0


I have this web-app that works fine in IE, but in Netscape 6.01 my javascript-code fails. I have a number of functions in an include file, but in Netscape I only get the message "<name of function> not defined". For example, when an onmouseover event calls the "color" function, Netscape Javascript monitor reports "color not defined".
script is included like this:
<!-- #include file="_ScriptLibrary/jscript.inc"-->

and might be called like this:
onmouseover="color(this)"

This is the function itself:
function color(elmnt)
{
elmnt.style.filter=false
elmnt.style.filter="chroma(color=#ffffff)"
elmnt.style.cursor="hand"
}

Why does it fail?

2:18 pm on Mar 7, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 10, 2001
posts:793
votes: 0


Hi singularity, Welcome to WmW

Netscape doesn't support filters - that's an IE only thing.

It doesn't support the cursor either though I think it should just ignore that part - not fail.

2:29 pm on Mar 7, 2002 (gmt 0)

New User

10+ Year Member

joined:Feb 15, 2005
posts:2
votes: 0


Well, fair enough about filters and cursors, but Netscape does not seem to find the function at all (ASP VB functions works fine), or any JScript functions for that matter.
I even have some Netscape-specific code branches in some of the functions, so there must be something basically wrong with my jscript-handling.
2:34 pm on Mar 7, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 10, 2001
posts:793
votes: 0


Have you tried a different name for your function - maybe it's a keyword in N6 or something?

Scratch that. just tried it and it worked fine. If you stickyMail (see the link at the top of the screen) me a URL I'll have a look at the source for you and see if I can work it out.

2:48 pm on Mar 7, 2002 (gmt 0)

New User

10+ Year Member

joined:Feb 15, 2005
posts:2
votes: 0


It would be very kind of u, but the web-app is only used on the intranet. I could mail u an example ASP-page and the JScript-INC-file which will include all the relevant code needed to debug.

How do u include files with this stickymail?

2:49 pm on Mar 7, 2002 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Apr 10, 2001
posts:793
votes: 0


>>How do u include files with this stickymail?

Don't think you can but my real e-mail address is in my profile - feel free to send it there.