Page 1 of 1

detect frame url change and report to server

Posted: Wed Feb 13, 2008 10:44 pm
by potato
Hi,

to capture interests from users, i have to detect a url change in a frame and send this immediately to the server.
Here, a php-page has to handle the url-change.

So if a javascript detects a url change of an iframe, he has to call a php-page in the background.

How would i do this?

greetings,
tom

Re: detect frame url change and report to server

Posted: Thu Feb 14, 2008 9:52 am
by Popcorn
if the php handling is not time critical you can store the history in a cookie and grab it next time the user visits the server
but if you need it right away then use some XHR

also, the php-page will "handle" the change? meaning?