autocomplete form
Hi all, I'm working on a text link that open a form page that already has a given checkbox filled out. My problem is in referencing the form on the 2nd page -- I've tried to write a function that both uses window.open to open and name the new window, and then call a given field in a form on the new page, but it's not quite working... Any insight? It doesn't like when I try to pass in the fieldname.
Confused? Here's what I'm trying to pull off...
<script language="JavaScript" type="text/javascript">
<!--
function PreselectSession(x) {
window.open('form.html', 'SignUpPage');
SignUpPage.SignUpForm.x.checked = true;
}
//-->
</script>
...
<a href="javascript:void(PreselectSession(session1))">click here</a> to sign up for session1</p>
<p><a href="javascript:void(PreselectSession(session2))">click here</a> to sign up for Session2</p>
Thx in advance!