Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript_howto thread: Proper Netscape Notation


Message #1 by "Eric Levine" <eric@d...> on Mon, 7 Oct 2002 22:15:08 -0400
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 = "" & _
	"<FORM NAME = subscription METHOD = get ACTION = #>" & _
		"<INPUT TYPE = radio NAME = package VALUE = 0 CHECKED>"
& _
		"<INPUT TYPE = radio NAME = package VALUE = 1>" & _
"</FORM>" & _
	"<SCRIPT LANGUAGE = javascript>" & _
		"if (document.subscription.package[0].checked == true)
{" & _
			"document.writeln('True');" & _
		"}" & _
	"</SCRIPT>"
	
	Response.Write strTable
%>


  Return to Index