Cross-domain and iFrames?

This is still not possible and for good reason!

This is still not possible and for good reason! To read from another domain using the client's cookies, IP and credentials requires the page being viewed to expose the information somehow - It's a 2-way conversation with the Listener (Outer page) and Sender (IFrame) working together. A reason this is required: Imagine making an IFrame that takes up 100% of the page.

You could show a common website's login form in the IFrame and yet intercept keystrokes/input box changes and log them. The user would only know the difference if they checked the URL. If you have control over the browser of the user, you could use GreaseMonkey's cross-domain AJAX to get the contents of the IFrame (Assuming Firefox/Chrome).

Won't something like this help: function getContentFromIframe(iFrameName) { var myIFrame = document. GetElementById(iFrameName); var content = myIFrame.contentWindow.document.body. InnerHTML; //Do whatever you need with the content }.

This wouldn't work in my case because the content of the iFrame is: 1) XML and not HTML 2) From another domain, so I don't think I am allowed to access it this way. – Ben Dec 7 at 19:07 The iFrame is loading content from a different domain. The Same-Origin policy prohibits accessing framed content from another domain, even if only to read it.

– Aaron Dec 7 at 19:11 Yea, skipped that, pls have a look at this: stackoverflow. Com/questions/6474484/… – Sudhir Dec 7 at 19:15 @Aaron is there no way to "bypass" that using HTML5? It should be possible somehow... No?

– Ben Dec 7 at 19:45 @Sudhir Well, the post you suggested points that you need to have access to both sides, which is impossible in my case. – Ben Dec 7 at 19:52.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions