javascript code returned from a server
Posted: Sun May 06, 2007 4:53 pm
Hello,
I try to post this on the 'Client Side' forum as I expect to find skilled javascript guys.
Given that javascript lives on the Client side I used javascript inside php file and for my requirements it always worked fine.....till the day I used and HTML page splitted in 2 frames. (I already posted the matter on the Php code forum: viewtopic.php?t=67326).
Roughly speaking my question is why the SAME javascript code behaves differently when the page is client side instead of when it'is returned remotely ????
As far as I know javascript it's not compiled but it's interpreted during the browser page parsing so that it shouldn't care if the page it's already present on the client or if it comes from wherever other remote location after some whatever processing.
So for instance if a link in a page once cliked by the user acts like :
this should work regardless the origin of the javascript page.
Where my assumption is wrong ?
Thanks in advance !
I try to post this on the 'Client Side' forum as I expect to find skilled javascript guys.
Given that javascript lives on the Client side I used javascript inside php file and for my requirements it always worked fine.....till the day I used and HTML page splitted in 2 frames. (I already posted the matter on the Php code forum: viewtopic.php?t=67326).
Roughly speaking my question is why the SAME javascript code behaves differently when the page is client side instead of when it'is returned remotely ????
As far as I know javascript it's not compiled but it's interpreted during the browser page parsing so that it shouldn't care if the page it's already present on the client or if it comes from wherever other remote location after some whatever processing.
So for instance if a link in a page once cliked by the user acts like :
Code: Select all
parent.frame_left.document.form1.LOG_txtArea.value += text;Where my assumption is wrong ?
Thanks in advance !