Javascript in Anchor Tag
I am having an issue with the code below:
The anchor tag below is supposed to execute a script named scan_more_units. I am also trying to make the variables on the page available to the script.
<A href=""javascript:scan_more_units(document.scan_SP Board_no)"">Scan Units</a><BR>
The scan_more_units script is below:
<script language="jscript">
function scan_more_units(myform) {
myform.action = "scan_unit_no.asp";
myform.submit();
}
</script>
When I click on the anchor tag, it goes to the default.asp page in the folder but does not go to scan_unit_no.asp. The default.asp page is the login page. I'd like to bypass that page but send the userid and password directly to scan_unit_no.asp. I'm trying to eliminate the need for the user to login every time they access a new page.
Can anyone help me with this?
Thanks!
|