Sunday 15 July 2012

Changing a div with a remote javascript file -


In this way the server with an html file is x on x

    

Consider the JS file is included with Remote Server Y.

The file on page Y (remote.php) looks like this:

    

Why is this div not changing? Is my understanding of my overall approach and cross-browser JS wrong?

Bit: A PHP JPS calling is a way that Google uses on reCAPTCHA and Google ads.

I think you think this is just a command problem. Javascript is executed before Div is ready.

Move the script under the div, such as:

  & lt; Div name = "lev" & gt; Hello world & lt; / Div & gt; & Lt; Script type = "text / javascript" src = "http://pageYserverY.com/remote.php?hat=strong" & gt; & Lt; / Script & gt;    

No comments:

Post a Comment