Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: SV: Proper Netscape Notation


Message #1 by "Robert Nyman" <robert.nyman@c...> on Tue, 8 Oct 2002 10:17:16 +0200
Robert,

There are no errors being generated.  It works in IE.  In Netscape, the
if statement is not being processed so not text is printed to the
screeen.

Anyone have any other ideas??

Thank you,
Eric


-----Original Message-----
From: Robert Nyman [mailto:robert.nyman@c...]
Sent: Tuesday, October 08, 2002 4:17 AM
To: JavaScript HowTo
Subject: [javascript_howto] SV: Proper Netscape Notation


Maybe Netscape doesn't regard the FORM as a DOM Element before the page
has fully loaded...

Have you checked the error you get in the JavaScript Console? (Under
Tasks > Tools > JavaScript Console)


/Robert


-----Ursprungligt meddelande-----
Fr=E5n: Eric Levine [mailto:eric@d...]
Skickat: den 8 oktober 2002 04:15
Till: JavaScript HowTo
=C4mne: [javascript_howto] Proper Netscape Notation


Hey all,

I am trying to figure out how to properly code an If statement on a DOM
object in Netscape.  The following code, when run through IE, returns
the right response, the first radio button is checked on the load.
However, when running it through Netscape nothing happens.

Any help would be appreciated.


<%
strTable =3D "" & _
	"<FORM NAME =3D subscription METHOD =3D get ACTION =3D #>" & _
		"<INPUT TYPE =3D radio NAME =3D package VALUE =3D 0 CHECKED>"
& _
		"<INPUT TYPE =3D radio NAME =3D package VALUE =3D 1>" & _
"</FORM>" & _
	"<SCRIPT LANGUAGE =3D javascript>" & _
		"if (document.subscription.package[0].checked =3D=3D true)
{" & _
			"document.writeln('True');" & _
		"}" & _
	"</SCRIPT>"
=09
	Response.Write strTable
%>



---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
r-20



---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=3Dnosim/theprogramm
e
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=3Dnosim/theprogramm
e
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=3Dnosim/theprogramm
e
r-20



  Return to Index