gonecat
03-04-2004, 09:08 PM
i have a Javascript that displays thumbnails (which are dynamically loaded from a db query), and there could be 50 or more thumbs in there.
at first, when you have just a few thumbs in there it works fine (on any browser), but when you surpass a certain number of images (like 8 or 10) it doesn't display anything.
by the way, it's only happening on a new Mac, with OSX, on either Safari or IE5. Windows seems to display them fine, regardless of the number of thumbs.
if someone would like to see the code, please let me know. i'd really appreciate the help on this.
thanks a lot
gzazJim
03-05-2004, 01:09 AM
Hey gonecat and welcome to the forum!
It sounds to me like it's an OS-specific problem (master of the obvious here I know...), but I think having a look at the JavaScript would definitely be in order.
The only things I can think of off the top of my head to preload the images are as follows: You could assign the images to a dynamic array, and have the script iterate through them that way to preload them (but I have a feeling this would be a logistical nightmare).
The second way woul be to simply limit the number of images to be displayed per page to something smaller (say 10 or so) and then have a "next" button appear based on whether or not there are any further images to display.
That being said - I'm sure we'd still like to see your code! :)
Regards,
Jim
gonecat
03-05-2004, 01:25 AM
thanks a lot for welcoming me and for the suggestions.
the 'next page' thing is a good idea but my client is set on having it a certain way, so there i am.
i've attached the code, i really really appreciate your taking a minute to check it out.
you'll see some coldfusion in there, which is how i'm populating the thing.
thanks again,
-steve
gzazJim
03-10-2004, 09:34 AM
Hey gonecat,
Oddly enough everything looks just fine to me there...? I'm a little rusty with CF, but you did mention it was an OS specific problem... did you try running Opera for Mac and seeing if you can duplicate the problem?
I'll keep looking - it has to be something with how OSX/Safari/IE5 handles the script - and yet it works when there are small numbers of images... weird...
Anyone else have an idea?
Regards,
Jim
P.S. Have you tried this out with Linux/Konquerer?
vBulletin® v3.6.4, Copyright ©2000-2008, Jelsoft Enterprises Ltd.