Using Javascript with ASP

Results 1 to 2 of 2

Thread: Using Javascript with ASP

  1. #1
    Join Date
    Dec 1969

    Default Using Javascript with ASP

    I think I know the answer to this already, but is it OK to use Javascript on ASP pages to validate input fields etc and use VBScript to output from a database. I assume that anything not within &#060;% %&#062; tags will not be regarded as VBScript and will be outputted to a HTML page where the browser can then deal with the Javascript?<BR><BR>I assume this line<BR>&#060;%@ Language = VBscript %&#062; specifies that anything between percents is VBscript and that I can still us Javascript as well within script tags??<BR><BR>Thanks in advance for any help.<BR><BR>Sham

  2. #2
    David Brower Guest

    Default RE: Using Javascript with ASP

    Sham, <BR>Not only is it ok to use JavaScript to validate forms etc, it is actually advisable as Netscape doesn&#039t support VBScript. Anything between &#060;% %&#062; is processed by the server and it therefore doesn&#039t matter greatly what language you use - though most people use VBScript as it isn&#039t affected by the user&#039s browser.<BR><BR>david<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