Hi All!
I have the following code in an asp page whose language tag is:
<%@LANGUAGE="JA VASCRIPT" CODEPAGE="65001 "%>
// Find request variables.
var edition = Request.Form ("edition");
var language = Request.Form ("language") ;
Response.Write( "Edition is type "" + (typeof edition) + "" and
value "" + edition + ""<br> ");
Response.Write( "Language is type "" + (typeof language) + ""
and value "" + language + ""<br> ");
if (edition == "undefined" ||
(typeof edition) == "undefined" )
{
Response.Write( "Choose Page<br>");
Server.Execute ("choosePage.as p");
} // end if
else
{
Response.Write( "View Page<br>");
Server.Execute ("viewPage.asp" );
} // end else
The problem is this is what I see:
Edition is type "object" and value "undefined"
Language is type "object" and value "undefined"
View Page
There is nothing in choosePage.asp or viewPage.asp yet, but I am unable to
figure out why the else is triggering and not the if - my print out of the
edition var shows it has a value of "undefined" ...
Any help would be most appreciated!
Rob
:)