PDA

View Full Version : Posting to a different site



boovoon
26 Mar 2008, 10:45 PM
Hi all,
I am playing around with an idea of having a site that is more user-friendly than a site that I frequent. I would like to be able to submit form from my site (which shall have identical NAMEs that the original site expect) and get back the response (in HTML format). I can then process the response in a more meaningful way (to me).

I know I won't be able to use XHR, becuase of the cross-site posting. My be i shall use IFrame.

Anyway... Anyone be kind enough to suggest anything that might help me? Thanks in advance!

devnull
27 Mar 2008, 9:55 AM
The best way would be ScriptTagProxy, but am guessing you dont have control over the backend on this other site so wouldnt work. I think the next best way would be to post using normal xhr to your own backend, then have it do the submit to the remote site. The iframe trick is probably also another option, but may get difficult as well.

boovoon
27 Mar 2008, 5:24 PM
hi,

thanks for your reply. Currently I am going into the book "Webbots, Spiders, and Screen Scrapers" to see if they can help on my quest to my little mission. Will post on my progress.