Link to home
Start Free TrialLog in
Avatar of gondesiravi
gondesiravi

asked on

Alternative for IE Div tag in Netscape Navigtor

I have created a simple form using JSP and doing the field validations using java script. when there is any error I am displaying the corresponding error message written in DIV tag Dynamically

In form load even I am making the visibility of the DIV tag to Hidden

and when any error occurs then I am calling a function which makes the Div tag visibility property to Visible

It is working fine in Internet Explorer

I want to achieve the same functionality for Netscape Navigator 6.0 also

Avatar of DreamMaster
DreamMaster

All you need to know is the way to reference divs in Netscape...where IE would use document.all you would need document.getElementByID for Netscape 6...

Max.
if (document.getElementByID || document.all)
 do stuff if expression is True;


The double pipe || does not have a space between them and stands for
"logical OR".


Good luck,
Jim S.
ASKER CERTIFIED SOLUTION
Avatar of dij8
dij8
Flag of New Zealand image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Glad to help.  Thanks for the A.

I just noticed you have a lot of open questions.  I recommend you go through your list of questions and revisit them to see if you can close a few of them.  I also noticed of your 23 open questions, 4 of them have your top value of 50 points.  And a lot have a lot less.  It is recommended that an easy question gets 50 points, medium 100, and hard 200 points.  You may find you get more help if you show some respect to the experts here that give you help for free by following the guidelines.

Have a look at https://www.experts-exchange.com/jsp/cmtyQuestAnswer.jsp  Especially the part on "How do I get answers?"

All credit to you in that I see your grading history seems to be almost completely A's.  That is at least some way towards a great record on EE.

Nothing nasty intended by any of this.  Just some more free advice.