Click to See Complete Forum and Search --> : Open links in same area
scottyrob
11-07-2005, 12:15 PM
Howdy folks
www.loddonexplorers.co.uk/New_Design/news_include.php
This is a page set-up using dreamweavers templates. The text in the middle of the page is a php include to the file news.html. i would like to be able to open the internal links in the same area (prefferably with a different url, I.E if you click on the program link on this page, it shows program.html in the same area, but it also changes the url to /program.html). Is this possible without creating lots of new pages?
Robert Wellock
11-07-2005, 12:22 PM
Generally it's not advisable to do is it can confuse some people when you open external sites with something like an <iframe> or frame.
Unless of course you mean your own links.
scottyrob
11-07-2005, 01:04 PM
yes i do mean my own links!
kelly23
11-07-2005, 01:36 PM
You'd need to use an i-frame for that instead of a div as you're doing now (or at least inside your div.) Give the i-frame a name, then when you add a link make sure to add target="iframe-name">
scottyrob
11-08-2005, 01:37 AM
Ok then. Say i have the page index.php and in the middle of this page is an i-frame which is displaying.. program.php with a link to programold.php... if i click on the link programold.php will the broswers address change to... www.yoursitehere.com/programold.php? If not that is what i want it to do... even if it means running some scripts etc etc...
Cheers, Fet
kelly23
11-08-2005, 06:12 AM
No, because you're still on the same page. If you want to open a new page (with a different url), you'll need to create a new page for each.
scottyrob
11-08-2005, 06:50 AM
Dam... Is there any way of doing this? Any other language that i could do this because i really do not want to have to create hundreds of new pages...
Fet
Why not place the content into a database and code one php page to retreive that content to that iframe when the user clicks it?
scottyrob
11-08-2005, 11:52 AM
Would this work with URL's though?
kelly23
11-08-2005, 12:32 PM
No it wouldn't. Why would you want the location bar to display a url other than what it really is?