[thelist] JavaScript help passing variable from HREF to FORM
Bruso, John
jbruso at SHERIDAN.EDU
Thu Jan 26 17:32:56 CST 2006
I'm hoping someone can tell me what's wrong with my javascript code
here. The <% %> jsp code is working fine.. my issue is with the href
link which should be passing a URL variable to the form and then
submitting the form.
But, when I click on the link, nothing happens... and an obscure syntax
error that deosn't help much...
Thanks for your eyes :)
John
<FORM action="http://portal.sheridan.edu:2048/login" method="POST"
name="logonForm">
<INPUT type="hidden" name="url">
<%= "<input type=\"hidden\" name=\"user\" value=\""+userID+"\">" %>
<%= "<input type=\"hidden\" name=\"pass\" value=\""+password+"\">" %>
</form>
<a href="javascript: void();"
onClick="document.logonForm.url.value='http://library.alldatapro.com';
document.logonForm.submit();">link</a>
-------------------------
John Bruso
IS Developer
Sheridan College
ph 307.674-6446-2608
More information about the thelist
mailing list