homepage Welcome to WebmasterWorld Guest from 50.17.176.149
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
Forum Library, Charter, Moderator: open

JavaScript and AJAX Forum

    
Javascript in Netscape 6.01
Need help with javascript on an intranet
singularity




msg:1489996
 2:03 pm on Mar 7, 2002 (gmt 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?

 

joshie76




msg:1489997
 2:18 pm on Mar 7, 2002 (gmt 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.

singularity




msg:1489998
 2:29 pm on Mar 7, 2002 (gmt 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.

joshie76




msg:1489999
 2:34 pm on Mar 7, 2002 (gmt 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.

singularity




msg:1490000
 2:48 pm on Mar 7, 2002 (gmt 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?

joshie76




msg:1490001
 2:49 pm on Mar 7, 2002 (gmt 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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / JavaScript and AJAX
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved