Is it possible (and appropriate) to open a new window to an external URL, have my users process a form on that site (which generates a query string with name/value pairs) and then parse the pairs of that query string back to my parent window so the values can be loaded into variables for subsequent use in a form on my site for further processing? I’ve read about approaches using window.opener in the child window referencing back to the parent (not this situation), techiniques using cURL and screen scrapers grabbing information that exists on other sites but this situation requires the user to make choices on the external URL before the values are generated? Any thoughts or directions to applicable readings would be appreciated. Also, if this approach is inappropriate I’d also appreciate hearing about that as well.
A:
I'm a little confused. You are making users complete a form on one site, which upon successfully saving, displays the new values on that site, and you're planning to then scrape that new information and use it on your site?
It sounds very complicated. Without knowing the exact details or why this is necessary it's tough to give a good answer.
For example, you're making some site about movies, and you want to use IMDB as a source then this idea doesn't make much sense. Why wouldn't the users just use IMDB?
Also this would be very tough to code.
eli
2009-11-13 16:59:00
Thanks for your reply.I have a large form collecting data on specific events including the location. Users have the option of adding longitude and latitude. I don’t have a “map” API and I’m not ready to install one. I refer the user to a site to select their location via a new window. They get the coordinates after clicking their location. The user copies these coords. returns to the form to type them in. I’d like to load them directly into my form. Adding a map is my next choice – but that’s just one more thing I have to come-up-to-speed on – I’m new to everything.
Artie
2009-11-13 17:28:59
I really think that adding a map API would be the best option. http://econym.org.uk/gmap/ might be helpful.
eli
2009-11-13 18:05:16
A:
If by external site, you mean a site that you have no control over, then if this would be possible, it would be a security hole.
Leventix
2009-11-13 16:59:44