Forum Moderators: phranque

Message Too Old, No Replies

2 Qs: Dreamweaver templates and iframes

         

alseides

8:56 pm on Mar 10, 2006 (gmt 0)

10+ Year Member



My first question is about Dreamweaver templates. When I make a new page using a template and save it, Dreamweaver will automatically update all the links and images so that they are not broken. This is working great for me and saves a lot of time. However, the problem is that Dreamweaver will not see the links in javascript code, such as:

<a href="../training/index.html" onmouseover="return loadIframe('navigation', 'navigation/training.html')">button</a>

it is able to update the first link (by adding the appropriate "../"), but not the one in the loadIframe method.

My second question is concerning iframes. As you can see above, a page is loaded into the iframe when the link is moused over. I have 3 of these on one page. The problem is everytime a mouseover occurs and the iframe is loaded with a new page, it leaves a trail in the history. So when u want to go back, you have to back through all the pages that were loaded in the iframe.

Thanks.

kaled

11:40 pm on Mar 10, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Can't help with the template but the history problem can be sorted by using location.replace('page.html') instead of assigning to location.href

Kaled.

alseides

6:19 am on Mar 11, 2006 (gmt 0)

10+ Year Member



Can u explain that in more detail? I'm not a programmer, even with Javascript unfortunately (but I'm learning). :(

thanks