0

hello, i never used ajax and now i need it :-P
i need monitor iframe on page. user open my page with some information and iframe. in this iframe user must register on other pages and i need to know iframe url to redirect iframe to other pages after complete registration. have anyone idea how do this? thanks and sorry for my english ;-)

2
Contributors
3
Replies
4
Views
8 Years
Discussion Span
Last Post by itsjareds
0

This isn't possible because some browsers like Firefox reject requests for iframe URLs as a security measure. Some people could abuse it for XSS (cross-site scripting).

0

and exist any possible method or way how to check if user got to page which i want and which is not my?

0

I have tried this and it seems to work: index.html

<html>
<body>

<div>
Frame locations list:<br/>
<ul id="list">
</ul>
<br/>
</div>

<iframe src="frame.html"/>

</body>
</html>

frame.html

<html>
<body>

<script type="text/javascript">
function sendURL(url) {
	window.top.document.getElementById("list").innerHTML += "<li>" + document.location.href + "</li>";
}
</script>

<a href="http://www.example.com" onClick="sendURL()">Link</a>

</body>
</html>

Of course, this doesn't look very pretty, but it just shows that you can send information from the frame to parent.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.