Welcome to WebmasterWorld Guest from 54.160.163.163

Forum Moderators: brotherhood of lan & mack

Message Too Old, No Replies

how to change iframes when navigating

     

tsdj

7:30 am on Dec 12, 2009 (gmt 0)

5+ Year Member



Hi guys, im new to all this

im currently building a website with a list links on one page

when clicking on a link u will be taken to a page produced from a template with links across the top which load different pages in the iframe below.

my question is

if i have a list of links for example
link 1
link 2
link 3

is it possible (using templates in dreamweaver) to make the iframe load with information about what ever link is pressed on the previous page

if u need a link to my current project please tell me.

rocknbil

8:30 pm on Dec 12, 2009 (gmt 0)

WebmasterWorld Senior Member rocknbil is a WebmasterWorld Top Contributor of All Time 10+ Year Member



Welcome aboard tsdj, what kind of information are you looking for?

There are various ways to do this. Pass a hard coded query string value, but a server-side processor or JS will be required to extract the info:

href="some-page.php?this_page=about"

Set a cookie and read it's value. Javascript or server side programming would be required to set/get the cookie value.

On the server, the environment variable HTTP_REFERRER is usually sent by modern browsers for a link. That is, if this link is on the "about.html" page

href="some-page.html"

When you land on some-page.html, the referrer is "about.html". Again, though, you need Javascript, SSI, or server side programming to actually do anything with it. So to answer the question, in Dreamweaver, the only way would be Javascript, as it's all executed within the browser.

 

Featured Threads

Hot Threads This Week

Hot Threads This Month