PDA

View Full Version : Problem with refreshing master window


garrettstj
01-05-2003, 07:09 AM
Hello,

I am currently working on building a gallery of my digital pictures. I have a JavaScript included in my site Garrett's Updates (http://www.garrettstj.com/christmas2002.html) that opens a new window with the picture and a small caption. The problem that I am having is that every time you scroll part way down the page and then click a thumbnail it refreshes the master page. I don't want this to happen because then the user will have to scroll down the page again to get to the next picture. Any help will be most appreciated, I hope I have made my problem clear.

Ökii
01-05-2003, 09:28 AM
<a href="#" onclick="chng(........)"> = bad

<a href="javascript:chng(.......)"> = better

<a href="javascript://" onclick="chng(...)"> = also better

both the above will stop the master page scrolling back.

best though is

<a href="pics/christmas2002/PC200031_small.jpg" onclick="chng(...pics/christmas2002/PC200031_small.jpg...); return false">

that last will stop the bad scroll, open your chng window if javascript is enabled or just open a new window with the image if js not enabled.

garrettstj
01-09-2003, 09:31 PM
Thanks for the help! Works great! :)