Top.Mail.Ru
? ?
Javascript's Journal
 
[Most Recent Entries] [Calendar View] [Friends View]

Thursday, January 23rd, 2003

Time Event
1:15p
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!

<< Previous Day 2003/01/23
[Calendar]
Next Day >>
About LiveJournal.com
Image