detect frame url change and report to server

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
potato
Forum Contributor
Posts: 192
Joined: Tue Mar 16, 2004 8:30 am
Location: my lovely trailer, next to the big tree

detect frame url change and report to server

Post 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
User avatar
Popcorn
Forum Commoner
Posts: 55
Joined: Fri Feb 21, 2003 5:19 am

Re: detect frame url change and report to server

Post 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?
Post Reply