Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I write all the client side validations

Status
Not open for further replies.

Mun

Programmer
Mar 5, 2003
46
US
Can I write all the possible client side validations (JScript) for a webpage in a seperate file and include that in my ASP Page. Thanks in advance.
 
yes...put this in the HEAD section of your page
Code:
<SCRIPT LANGUAGE=&quot;JAVASCRIPT&quot; TYPE=&quot;text/javascript&quot; SRC=&quot;your_js_file.js&quot;></SCRIPT>
Tony
reddot.gif WIDTH=500 HEIGHT=2 VSPACE=3

 
Thanks!
Where does this line goes?
<SCRIPT LANGUAGE=&quot;JAVASCRIPT&quot; TYPE=&quot;text/javascript&quot; SRC=&quot;your_js_file.js&quot;></SCRIPT>

In in my ASP page, just below the # include stmt?
 
Your ASP page builds a HTML file that it sends to the client browser.
The HTML will look something like this...
Code:
<HTML>
<TITLE>your title here</TITLE>

<SCRIPT LANGUAGE=&quot;JAVASCRIPT&quot; TYPE=&quot;text/javascript&quot; SRC=&quot;your_js_file.js&quot;></SCRIPT>
</HEAD>
<BODY>
...rest of page here...
Tony
reddot.gif WIDTH=500 HEIGHT=2 VSPACE=3

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top