- Page stops downloading when user clicks thumbnail
- Posted by Flowerpot on July 16th, 2003
Hello there, everyone. I have a problem with this page below:
http://www.rauxa.co.uk/architectural.htm
There are others like it on the site which have the same problem. I
wonder if anyone here can suggest how I can solve it.
If the user clicks one of the thumbnails a pop up window (sorry to
those that hate them) shows a larger version. But if the user clicks
one of the thumbnails before the others have downloaded, the page
never completes its download unless the user refreshes it manually
themselves and so the user might miss seeing some of the photographs.
I am wondering if there is anything I can use in Javascript, ie is
there a property like totalBytesLoaded that I can access and do
something like
If totalBytlesLoaded not true then refresh the page
(preferably in a way that will be search engine friendly).
If not, I have ASP hosting and I know a bit of VBScript, is there
anything I could use in VBScript to do something about this problem?
- Posted by Jim Dabell on July 16th, 2003
Flowerpot wrote:
[snip]
Presumably, this is because the browser stops loading the page to go to
another URL. Try doing the javascript properly instead, that might solve
the problem. Instead of:
<a
href="javascript
penWindow('architecture/gla.jpg','364','450','Architectural
image','architectural/gla.htm')">
....use this:
<a href="architecture/gla.htm"
onclick="openWindow('architecture/gla.jpg','364','450','Architectural
image','architectural/gla.htm'); return false;">
This is far more friendly when javascript is unavailable too.
--
Jim Dabell
- Posted by Flowerpot on July 16th, 2003
On Wed, 16 Jul 2003 13:51:04 +0100, Jim Dabell
<jim-usenet@jimdabell.com> wrote:
I've changed the page and it now continues to download. Thank you so
much, Jim.
Excellent point, thanks for setting me straight on that.
Off to change all the other pages now ...
Thanks again!


