I have a link to an external site that has a form on it. When users link to that site from mine, I want to automatically fill out the form for them. Based on other posts, I’ve tried var nw= window.open("http://www.somewhere.com/") nw.document.FormName.FieldName.value="text" For some reason, its not working. Please help.
rocknbil
10:46 pm on Nov 19, 2006 (gmt 0)
What you're getting at will only work on a local site. For an external site, you would have to send the form values in a query string, and have javascript on that site parse out the query string and dynamically populate the fields.
If you have control over the external site the EASY way would be to dynamically load the form, populating the values with incoming variables.
Tkdka
2:46 am on Nov 20, 2006 (gmt 0)
Thanks for the info. I’m new to web applications and have never worked with anything remotely like this before. When you say have “javascript on that site” perform the task, do you mean that I have to make a script run on the window in which the external page is loaded? If so, is there an easy way to do this?