Forum Moderators: mack
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.
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.