Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

form submission - hidden frames???

Status
Not open for further replies.

sknyppy

Programmer
May 14, 1999
137
US
I have a form that contains several sections of form fields.
The first section contains user information fields such as name, address, etc.

After a user completes the user information section I need the user to click a button
That will return information from another site and automatically populate 2 other
form fields with this data.

What is the most seemless way or best way to do this?

Should I use a hidden frame?
Maybe a popup window that goes to the specific site and sends the values back to the form in the parent window?

Thanks,
Dave
 
You're talking about accessing data across frames with JavaScript from two different domains. You may run into security problems. It'd be better if you could submit the form to the second domain. Then you could use JavaScript or some server-side process to get the data from the querystring or post headers, then submit the result information back to the first domain.

It very much depends on if you have control over the code on the other domain.

Adam
while(ignorance==true){perpetuate(violence,fear,hatred);life--};
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top