aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes URGENT Help needed on JavaScript. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "URGENT Help needed on JavaScript." Watch "URGENT Help needed on JavaScript." New topic
Author

URGENT Help needed on JavaScript.

Praveen Dharmavaram
Ranch Hand

Joined: Nov 05, 2002
Posts: 59
Hi,

I have a javascript which works on Mozilla, Netscape 7.0 and IE. But it doesnt work on Netscape 4.8. I have pasted my code below. Any help is appreciated.

Thanks
Praveen

NOTE: Please do a global change "<" and ">"


[Added code tags - eric]
[ August 25, 2004: Message edited by: Eric Pascarello ]
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
I persoanally would not waste my tiume with Netscape 4 since it is an outdated browser that does not support any new methods in DOM, it lacks CSS support, etc.

http://www.yourhtmlsource.com/javascript/advanceddoms.html

So if you want to waste the rest of you day with conditional statements converting things to layer object then you can do that.

Eric
Praveen Dharmavaram
Ranch Hand

Joined: Nov 05, 2002
Posts: 59
Thanks for your response. But I had to do this as one of our customer uses the legacy browser. So there is no choice for me. Can some one please help me.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
That link shows you the layer tag. I bet that is what you are going to have to deal with.

I do not think they have the style attribute either and I do not think display is supported.

I have not coded for Netscape 4 in over a year so I do not remember all of the little things that it does not support.

You might be better off detecting the browser and using a different script.
It will save you from having the modern browsers having to sort through all of the junk that you are going to have to create for this browser.

Start your code off in small chunks and see if you can get it to work. Converting the whole thing in one chunk will not work.

Eric
Julian Kennedy
Ranch Hand

Joined: Aug 02, 2004
Posts: 823
Perhaps a simpler solution would be to point your customer to Netscape's site where they can download the latest browser, with all its new features, for free. I'm sure that your customer must be pretty frustrated already that a large proportion of sites he visits look awful, or don't work at all, in his browser of choice...

Personally I believe that would be time better spent than coding specially for one customer who uses Netscape 4. It shouldn't be a hard sell. You have a choice.

Jules
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: URGENT Help needed on JavaScript.