homepage Welcome to WebmasterWorld Guest from 54.196.24.103
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Website
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
Controlling URL in one frame from another frame
Can this be done?
PaulPA




msg:1258677
 12:00 am on Jul 17, 2004 (gmt 0)

I want to develop a frames page with two horizontal pages. Within the bottom frame I want to control websites that appear in the upper frame. That is, enter URLs via some input box in the lower frame and have the site appear in the upper frame. Also, as an added feature (as if this was not enough!) if the user clicks on a link in the upper frame this new url will appear in the lower input box (just as it would in the Address/URL box in a browser).

Not sure how this would work but if anyone can give direction I'd appreciate it. Also, prefer PHP solution but javascript could also work.

 

Echo_Tyme




msg:1258678
 12:04 am on Jul 17, 2004 (gmt 0)

I believe there is a way, if you name your frame then you can make the target of the link in that frame.

So if you name the top frame "up" and in the lower frame you have the link say target="up"

so in ur index page you have the frames ready like this

<frame src="top.html" name="up">

then you just have your link:

<a href="newpage.html" target="up">Name of your link</a>

And there you ahve it ^.^

PaulPA




msg:1258679
 12:11 am on Jul 17, 2004 (gmt 0)

Thanks. I think I see that but what about coming back the other way. If a user clicks on a link inside the upper frame can that url end up in the lower input box?

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved