NS question
Why does this work in IE but not in NS?
var DefaultDiv = document.getElementById('Def');
//alert(DefaultDiv.style.display);
DefaultDiv.style.display = "none";
//alert(DefaultDiv.style.display);
Display is set to 'none', but nothing changes...
Shakespeare: onclick || !(onclick)
mmi posted this at 09:29 — 4th August 2003.
They have: 457 posts
Joined: Jan 2001
Hey Jack
Mmy guess is these will be of no help to you, but ...
http://beta.experts-exchange.com/Web/Web_Languages/JavaScript/Q_11969858.html
http://www.experts-exchange.com/Web/Web_Languages/JavaScript/Q_20585832.html
Web Xpertz Community Forums for Webmasters & Developers
Where You Can Learn, Advise, and Have Fun in the Process
Jack Michaelson posted this at 11:26 — 4th August 2003.
He has: 1,733 posts
Joined: Dec 1999
you were right mmi, those were of no help
but thanx anyway:)
anything/anyone else?
Jack Michaelson posted this at 12:13 — 4th August 2003.
He has: 1,733 posts
Joined: Dec 1999
Ha!
Found the solution here (Google Groups)
ShaneS posted this at 14:25 — 4th August 2003.
They have: 93 posts
Joined: Jun 2003
That should work in NS 6 or higher. What version are you using?
BTW you referenced your solution. I think it should be noted about this.
function hide( objectId ){
// W3C & Netscape 6
if(document.getElementById && document.getElementById(objectId)) {
document.getElementById(objectId).style.visibility = "hidden";
document.getElementById(objectId).style.display = "none";
shown[objectId] = false ;
visibility = if you can see it or not on the page, where it is positioned via the style, or parent block.
display = works very similar, except for a difference, CSS positioning and layering is not required here. This is used for items like expanding menues. The content is not show, but when given a display it will push the content in the browser. I personally have not been able to accomplish this "dynamic" effect with visibility.
[Design Alpha] -Web Services : Design,Hosting,Advertising,Software
Ask about custom pricing on hosting!!
Site Assets: [UltraGaming.com] [Blades of Warcraft]
mmi posted this at 16:46 — 4th August 2003.
They have: 457 posts
Joined: Jan 2001
Hey Jack
Glad you found the answer (and perhaps got some other useful info about playing hide and show with objects in N).
Did you find that doc by searching? I ask because I'd be interested in the terms used. With all the material on the web related to troubleshooting stuff, I figure learning how to find solutions to problems like yours is a useful skill to have in administering a development forum as I do.
Thanks (and you're welcome ).
Web Xpertz Community Forums for Webmasters & Developers
Where You Can Learn, Advise, and Have Fun in the Process
Jack Michaelson posted this at 17:08 — 4th August 2003.
He has: 1,733 posts
Joined: Dec 1999
MMI, I used 'style.display netscape' in Google Groups.
ShaneS, thanx
mmi posted this at 18:19 — 4th August 2003.
They have: 457 posts
Joined: Jan 2001
Thanks, Jack.
I used "ns" as you had in your post. I had a feeling that was a bad idea, or at least that I should have tried something else as well.
Web Xpertz Community Forums for Webmasters & Developers
Where You Can Learn, Advise, and Have Fun in the Process
Vincent Puglia posted this at 14:59 — 6th August 2003.
They have: 634 posts
Joined: Dec 1999
Gee Jack & mmi,
I would have thought you guys would have checked my site first
Vinny
Suzanne posted this at 15:03 — 6th August 2003.
She has: 5,507 posts
Joined: Feb 2000
Vinny! Where have you been?
Vincent Puglia posted this at 15:10 — 6th August 2003.
They have: 634 posts
Joined: Dec 1999
Hi Suzanne
[no comment]....[/no comment]
Vinny
mmi posted this at 23:53 — 6th August 2003.
They have: 457 posts
Joined: Jan 2001
I'm not enough of a scripter to know what t' look for in all that tall grass.
He just got out. :blockhead
Web Xpertz Community Forums for Webmasters & Developers
Where You Can Learn, Advise, and Have Fun in the Process
Jack Michaelson posted this at 22:06 — 8th August 2003.
He has: 1,733 posts
Joined: Dec 1999
Hey How's life?
(next time I'll check your site )
Shakespeare: onclick || !(onclick)
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.