Time:
Scotland: Fri, 11:44 pm
Rhode Island: Fri, 6:44 pm
Florida: Fri, 6:44 pm
New Mexico: Fri, 4:44 pm
California: Fri, 3:44 pm

Click here to visit Livelife365.com

Click here to visit nmdarts.com



Buy this Ad Space.

180px wide.

Please get in touch with KH@ if you are interested and make an offer.

CLICK HERE TO GET AUCTION BAR NOW
US$10 per year - Save $100s!
The Fabulously Unfair
WebX Auction Bar. For Ebay etc.
Ro-Sham-Bo the opposition. Laugh like Eric Cartman when you win! CLICK HERE NOW!


More information and sign-up.

WebXpertz Hosting.
Custom fit from $5pm. PHP/MySQL
You'll save money, we'll save money. Seems fair to me. Interested? If so Please PM me here and tell me what you need. Thanks!


Please click here for more information

For continued disscussion on this topic : need to preload images ?


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?