> Posted by: "caitlin_weaver" no_reply%40yahoogroups.com">no_reply
yahoogroups.com caitlin_weaver
> Date: Mon May 12, 2008 9:12 am ((PDT))
>
>
> Say on frame 'one' I have this:
>
> <a id='testing'>chips</a><br>
>
> On the same page something like this works fine:
>
> <a
> onclick="document.getElementById('testing').innerHTML='potato';">click
> here</a>
>
> But I need to send something from frame 'two' and from there this does
> not work:
>
> <a
> onclick="document.parent.frames['one'].getElementById('testing').innerHTML='potato';">click
> here</a>
>
> What am I doing wrong?
>
> The reason I have two frames is that one is refreshing frequently to
> fetch new data from a remote site. The idea is for javascript to
> update the contents of the other frame without reloading the page.
You can't update the DOM tree of one document from another document that's on a
different server.
cheers
jon.
>
> Thanks a lot,
> - Cait
>
--
This message has not been scanned for viruses.
Since I do not use a Microsoft operating
system or software, and use only plaintext
for email, there is little need for me to do so.
.