Link to home
Start Free TrialLog in
Avatar of corywatilo
corywatilo

asked on

Pass variable to form onSubmit with Thickbox

I am working on a form here:

user: local
pass: irvine
http://livemediamarketing.com/clients/local/bol/

and want to make the form on this page pass the email to a thickbox window on a new form. If you click ENTER, you will see the form pop-up. The email field there should be populated by whatever the user types on the initial page.

Thanks.
Avatar of krishna kishore mellacheruvu venkata
krishna kishore mellacheruvu venkata
Flag of India image

try something like this.
document.forms[0].email.value = window.parent.document.forms[0].email.value
Avatar of corywatilo
corywatilo

ASKER

Did I insert it correctly? :-/

(Sorry, I'm just a CSS guy.)
I should also say that I found the same advice in another thread and added it in but it didn't work, which is why I posted this question. It doesn't seem to work for me, unless I'm not inserting it correctly.
Can you post the code?
Here is some of it, but you can also view the whole thing by visiting the link at the top of this thread. Thanks.

<a href="inner.html?keepThis=true&TB_iframe=true&height=600&width=600" title="Ratings and Reviews - Powered by Local.com" onClick="document.forms[0].email.value = window.parent.document.forms[0].email.value" class="thickbox"><img src="g/enter.gif" style="margin:5px 0 0 180px;" /></a>

Open in new window

IS the form field name is same in both parent and child windows?
ASKER CERTIFIED SOLUTION
Avatar of scrathcyboy
scrathcyboy
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial