I'm using lytebox to open an iframe, but the iframe url is in another domain that the parent window.
i need to close the iframe when user clicks a button. I can do that with javascript : top.$lb.end();
the $lb.end(); starts lytebox scripts in parent window which close the iframe and modify all the css stuff.
That works when my iframe url is in the same domain. But when it's in another domain, that does'nt work.
Can anyone tells me how to do that ? Starting the $lb.end() function of the parent window ?
Thank you.
even without IE7, postMessage() is much better than "AFAIK, you can't."...
What's wrong with "As Far As I Know?" A frank cover for an ambiguous answer...
Originally Posted by rnd me
if the OP doesn't have access to both domains, he shouldn't be influencing code on both.
The truth is that most of the time people want to influence something on another domain without having access or acceptance of the owner of that domain. Which makes the things if not impossible, at least malicious. Don't you think so?
The truth is that most of the time people want to influence something on another domain without having access or acceptance of the owner of that domain. Which makes the things if not impossible, at least malicious. Don't you think so?
"malicious" stems from "malice", which i don't think is a motivation in most of these requests. I think many coders, especially the newer ones that ask lots of questions around here, are just unaware of the SOP.
Since php proxies, back end engines, cors, jsonp, and other technique routinely mashup content on popular sites, people assume it's easy to do. And to some extent, they are right: it is easy. It's just that it hasn't been easy in javascript for very long, and even today, js follows a much stricter set of rules than curl or python or other common web languages.
i also think that hackers wouldn't ask many questions in public, or would know how to figure it out themselves. Otherwise, they wouldn't be a very good hacker...
i also think that hackers wouldn't ask many questions in public, or would know how to figure it out themselves. Otherwise, they wouldn't be a very good hacker...
True. Yet many honest beginners still hope that they could establish a back-and-forth relationship between 2 domains, without having access to one of them.
Bookmarks