I have always used VBScript but now need to convert my syntax to JavaScript.
In an external file, I have a function that is called when a user clicks a
button on a login page. The function checks the format of data that has
been entered by the user and makes sure that all required fields have been
filled out. On the login page, between the <head></headtags I have the
following syntax:
<script language="javascript" src="scripts/login.js"></script>
The syntax on the button is as follows:
<input type="button" name="cbSubmit" value="Login"
onClick="javascript:validateentry" tabindex="4" style="cursor:hand;">
When I load the page and click the button, I get the following error
message:
Error: 'validateentry' is undefined
I am a JavaScript newbie and already am at a loss to see what the problem
is! I have checked the obvious and can confirm that the function name and
case is correct and matches in both the JS file and the web page. I'm sure
it's something really simple, but I just can't see it!!
Can anyone help me?!
Debbie :(