Java Script Problem

Results 1 to 4 of 4

Thread: Java Script Problem

  1. #1
    Holding Guest

    Default Java Script Problem

    I have following problem<BR>i am assigning request.querystring value to i<BR>first time value of request.querystring is null<BR>so when i frist time execute value expression becomes<BR>i=<BR>i get error messages <BR>when i execute second time value of i become 2 no error<BR>produced<BR>i want that when first time i is empty<BR>i automatically initialized by 1<BR>How it is possible?<BR> <BR><BR><BR><BR>&#060;script language=javascript&#062;<BR>function startclock()<BR>{<BR> i=&#060;%=Request.QueryString("page")%&#062;<BR><B R> if (i==11)<BR> { <BR> document.location.href="default.asp" <BR> }<BR>&#060;/script&#062;

  2. #2
    Evel Knievel Guest

    Default RE: Java Script Problem

    How about using IsNull function ? Eg<BR><BR>&#060;%<BR>If IsNull(Request.QueryString("page")) Then<BR> &#039;do something <BR>End If<BR>%&#062;<BR><BR><BR>

  3. #3
    Holding Guest

    Default RE: Java Script Problem

    ASP delimeters &#060;% %&#062; are not working is java script

  4. #4
    Join Date
    Dec 1969

    Default WHAT?

    all you need to do is assign a default value, like the previous respondent said.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts