0

I want to know if there any method to bypass the cross domain issue?

It's only for personal use. what I want to do is just extract some data from my page(under control) and fill them into a external site's form (included into my page with iframe) other wise I have to copy & past them manually, that's painful.

I tried many method but with no lucky.

skaffman
  • 398,947
  • 96
  • 818
  • 769
Colin Niu
  • 109
  • 12
  • I have no control over the external site. – Colin Niu Jun 21 '10 at 12:50
  • Huh? You want to inject details from your page into a third party page? What should happen here is that the third party hosts your content in an iframe on their page, you can't just add your content to theirs. – slugster Jun 21 '10 at 12:52
  • I think more detail will help your question allot here. Would server side scripting assist you? – guyumu Jun 21 '10 at 13:01
  • You could develop a browser-plugin or write a userscript. Both run with extended rights so they don't have to care about SOP – Bergi Apr 22 '13 at 16:55

1 Answers1

0

Use YQL as a proxy: http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20json%20where%20url=%27http://website.com/query/path%27&format=json&callback=call_me

That gives you a JSON-P call. ... Then implement function call_me(json_object) { ...

Remove the "callback" parameter if you want plain JSON.

gatopeich
  • 3,287
  • 31
  • 26