calling function

Results 1 to 2 of 2

Thread: calling function

  1. #1
    Join Date
    Dec 1969

    Default calling function

    &#060;SCRIPT LANGUAGE=JavaScript&#062; <BR>function AlreadyVoted()<BR>{<BR> alert("You must already Voted today! Click View Results for the Results.");<BR> return false;<BR>}<BR>&#060;/SCRIPT&#062;<BR>&#060;BODY&#062;<BR>&#060;% if strVoted = "Yes" then %&#062;<BR> sh=AlreadyVoted()<BR>________<BR><BR>in the output html I&#039;m getting sh=AlreadyVoted() printed. why?

  2. #2
    Join Date
    Dec 1969

    Default ASPFAQ #169

    You are mixing up client-side and server side code - the ASP is obviously server side and your JavaScript is client side. Have a look at:<BR><BR><BR>

Posting Permissions

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