javascript to determine if page on remote domain has changed

Posted by uku on Stack Overflow See other posts from Stack Overflow or by uku
Published on 2010-05-16T21:25:25Z Indexed on 2010/05/16 21:30 UTC
Read the original article Hit count: 209

Hi,

I am trying to find a client-side way to determine if a page on a remote domain has changed.

I can't load the page in an iframe and examine its contents due to same origin policy.

So I tried using .getResponseHeader("Content-Length") and .getResponseHeader("Last-Modified") but apparently these are also restricted by SOP even though FireBug shows Content-Length in the console.

Is there a way to do this? I just need a way to know if the page has changed.

Thx

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about cross-domain