Forums

This topic is locked

ASP file unable to load JS file

Posted 14 Sep 2004 10:37:26
1
has voted
14 Sep 2004 10:37:26 Milind Dhotre posted:
I have included 2 .js files in a .asp file. Now the code on events is not able to run the functions. However it works where the script is a block and the source is mentioned.

e.g.
This works :
<script language="javascript" src="masterVerification.js">
edkeys1(document.form2.semp1.value);
edkeys2(document.form2.semp2.value);
</script>


But, this doesn't :
<input name="txtDuration" type="text" tabindex="24" onKeyPress="return numerichandler(this, event)" size="26" maxlength="3" onblur="return checkDuration(this.value)">

Also tried to club the 2 js files into one and use a single file. That doesn't work either.

Reply to this topic