Re: Netscape DHTML
by "Justin H." <justinh(at)whidbey.net>
|
Date: |
Sat, 7 Apr 2001 10:10:41 -0700 |
To: |
"HWG Techniques" <hwg-techniques(at)hwg.org> |
References: |
home |
|
todo: View
Thread,
Original
|
|
Also, each DIV has it's own document object, so to access content inside a
DIV, you'd have to use:
document.layerName.document.formName.formObject
Justin H.
----- Original Message -----
From: "Rebecca Campbell" <nerdygirl(at)nerdygirl.com>
To: "CareBear" <caringbear(at)home.com>; <hwg-techniques(at)hwg.org>
Sent: Friday, April 06, 2001 10:44 PM
Subject: Re: Netscape DHTML
> hi bruce,
>
> the main thing to note is that there is no "document.all" in netscape.
it's
> just "document". if you use "all" in NN, your scripts will fail to run.
> however, in quite a few instances (particularly with form fields), you
will
> be able to use the same code for both NN and IE. the following will set
the
> value of the "name" field to "carebear".
>
> document.formname.name.value = "carebear";
>
> if you're showing and hiding layers, there's a rather large difference,
and
> it's usually best to test for the browser type:
>
> if(document.all) { ie = 1; nn = 0; }
> if(document.layers) { ie = 0; nn = 1; }
>
> function swapLayers {
> if(ie) { document.all.layername.style.visibility = 'hidden'; }
> if(nn) { document.layername.visibility = 'hide'; }
> }
>
> for more information, i'd suggest checking out the info at
> http://developer.netscape.com/tech/dynhtml/index.html.
>
> hth,
> rebecca
> __________________________________
> http://www.nerdygirl.com
>
> -----Original Message-----
> From: CareBear <caringbear(at)home.com>
> To: hwg-techniques(at)hwg.org <hwg-techniques(at)hwg.org>
> Date: Friday, April 06, 2001 9:01 PM
> Subject: Netscape DHTML
>
>
> Hi, I'm new here.
> I want to make my site compatible with netscape, I am using internet
> explorer 5.0
> Can anyone tell me the proper paths from window or document to say the div
> tag as well as any diference in calling a javascript function with a form
> item value? Most of the items will be in a form and a table.
> If it is too much to write on here maybe just tell me where I can find the
> information.
> The site does work well in internet explorer.
>
> Bruce
>
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.240 / Virus Database: 116 - Release Date: 23/03/01
>
>
HWG hwg-techniques mailing list archives,
maintained by Webmasters @ IWA