[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: frames/javascript urls?
Devon Lazarus wrote:
>
> i am posting this for someone who doesn't have access could you please cc
> any answers to him at
> williams@irc.chmcc.org? thanks
>
> --------------------
>
> I have been playing with javascript and frames to get two frames to load
> two different urls with one button click. I understand the target tag
> and everything works fine for loading in one frame. But to get the
> other to load I wrote this short javascript function in the head portion
> of the topmost framesrc
>
> function loadpix( obj, url)
> {
> obj.location = url
> }
>
> Then in the body tag I have the following:
>
> onLoad="parent.loadpix(parent.frame1, 'relative/url.html');"
>
> The first time the document loads both frames load properly. However,
> If I try to reload the frame that has the onLoad command the url path
> get screwed up. It looks like this:
>
> base/relative/relative/url.html
>
> Do you know anyway around this? Should I do something like:
>
> if ( parent.frame1.location != "relative/url.html") parent.loadpix....
>
> That just seemed a round about way? I also tried a base tag in the
> relative/url.html file, which didn't work.
>
> Thanks in advance and I'd appreciate any suggestions you might have.
>
> --------------------
>
> -devon
>
> ---------------------------
> d e v o n l a z a r u s
> Advanced Technology Group
> c|net online
> http://www.cnet.com/
> http://www.shareware.com/
>
> --------------------------------------------------------------------
> This message came from the mailing list javascript. For help using the
> mailing list software, please send a message to 'majordomo@obscure.org'
> with the message body 'help'. To unsubscribe, send a message to
> 'majordomo@obscure.org' with the message body 'unsubscribe javascript'.
Dear Lazarus
I am intersesting in uour application java-frames. If you solve the
problems you mention above please let me now about the java code.
thanks
Lambros Drossos
--------------------------------------------------------------------
This message came from the mailing list javascript. For help using the
mailing list software, please send a message to 'majordomo@obscure.org'
with the message body 'help'. To unsubscribe, send a message to
'majordomo@obscure.org' with the message body 'unsubscribe javascript'.