in reply to Writing To Frame That Didn't Call The Script

Your question is a little bit hazy... if you mean that you want a link to push content into a different frame, then refer to that other frame (by name) in the target of the <a href...> tage or the <form ...> tag that is pushing the request.

If what you mean is that you've loaded a page into frame X, but want (as a result of loading that page) to alter content in a different frame, then you can do this with simple javascript (not sure how browser portable this is or isn't... try it yourself!):

print " <script language=jscript> top.$frameName.document.innerHTML = ... </script> ";
or however you want to manipulate the innerHTML of that document.

Or, you can (more simply) just push a new page into that other frame:

print " <script language=jscript> top.$frameName.document.location = '$other_page.pl'; </script> ";
That sort of thing. Good luck.
------------ :Wq Not an editor command: Wq

Replies are listed 'Best First'.
Re: Re: Writing To Frame That Didn't Call The Script
by MrSteeple (Initiate) on Mar 18, 2004 at 06:41 UTC
    You understood what I need! Thanks for the ideas, I'll explore the JavaScript side of things further. I would just have preferred perl over javascript, thats all.

    Thank you very much you two (etcShadow, Happy_The-Monk). jZed? Thanks for the sarcasm (got a good laugh), but you really have to work on your people skills. lol

    see you :-)