javascript code returned from a server

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
veronica12
Forum Newbie
Posts: 6
Joined: Fri May 04, 2007 4:30 pm

javascript code returned from a server

Post by veronica12 »

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 :

Code: Select all

parent.frame_left.document.form1.LOG_txtArea.value += text;
this should work regardless the origin of the javascript page.

Where my assumption is wrong ? :crazy:

Thanks in advance !
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post by John Cartwright »

PHP is processed long before it gets to the client side, so your right, it doesn't matter.
veronica12
Forum Newbie
Posts: 6
Joined: Fri May 04, 2007 4:30 pm

Post by veronica12 »

I share what I found to be a final word on this:
http://msdn.microsoft.com/workshop/auth ... curity.asp

I found this investigating my error console msg:
"Error: uncaught exception: Permission denied to get property HTMLDocument.form1"
where the "permissin denied" sounds a good hint.
Post Reply