This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Rust Web Development and have Bastian Gruber on-line!
See this thread for details.
Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

URGENT Help needed on JavaScript.

 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Ranch Hand
Posts: 823
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic