mickeroo
09-23-2003, 11:37 AM
Hi there,
I've been working on a page to display images that combines php and javascript (trying to learn both) to read the images from a folder, display them in a grid and pops a larger version into a new window when the person clicks on it. This is nothing new, I'm sure!
here's the page:
http://www.mickeroo.com/nygallery.php
The page has 20 named images and hrefs and if there are more than 20 pics to be displayed, there is navigation at the top and bottom to go to the next/previous page. Pretty standard stuff.
The problem I'm having is that sometimes when I open a browser window and go to the page, the javascript works perfectly. Other times I have to do a ctrl-reload before I can use the navigation or click an image to have the popup work. I've had some friends try with their systems and got similar results. The javascript nav and popups always seems to work after a control-refresh but I don't want to have to rely on visitors doing that. Any ideas?
Thanks in advance!
Mike E.
I've been working on a page to display images that combines php and javascript (trying to learn both) to read the images from a folder, display them in a grid and pops a larger version into a new window when the person clicks on it. This is nothing new, I'm sure!
here's the page:
http://www.mickeroo.com/nygallery.php
The page has 20 named images and hrefs and if there are more than 20 pics to be displayed, there is navigation at the top and bottom to go to the next/previous page. Pretty standard stuff.
The problem I'm having is that sometimes when I open a browser window and go to the page, the javascript works perfectly. Other times I have to do a ctrl-reload before I can use the navigation or click an image to have the popup work. I've had some friends try with their systems and got similar results. The javascript nav and popups always seems to work after a control-refresh but I don't want to have to rely on visitors doing that. Any ideas?
Thanks in advance!
Mike E.