What I want to do appeared simple at first glance but I%26#039;ve hit a snag, namely the cross domain security present in all modern browsers.
What I tried to do:
- Submit a form (file upload) to an iframe on a %26quot;host%26quot; page.
- Once the iframe has processed the request I want to snag one word from that page.
- The word taken from the page in the iframe should be put into an element on the %26quot;host%26quot; page.
Of course, as soon as the %26quot;host%26quot; page attempts to access the iframe%26#039;s DOM FireFox gets mad at me.
It is not possible for me to have this on the same domain (not even sub domain) so I%26#039;m a bit stuck. Would it be possible to achieve the same thing by writing an extension? I%26#039;ve looked at using XMLHttpRequest but it appears it is not possible to do it with that either (again due to security limitations).
If it weren%26#039;t for the different domain issue I%26#039;d be all set already. I understand the necessity of the restrictions and agree with them completely but that doesn%26#039;t ease my frustration :)
Getting around cross domain security to be able to manipulate the DOM across domains? (FireFox)?
hmm, this probably won%26#039;t work buy you can try lowering the security level of your internet browser, maybe then it would work.
No comments:
Post a Comment