Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

huge thumbnail gallery - best approach ?

Status
Not open for further replies.

b3zra1y

Technical User
Aug 23, 2007
2
US
Hi -
I'm wondering if I can get some insight about the best way to handle the following:
------------
I need to send up a simple page to the browser which will contain nothing more than thumbnail images. But a LOT of them (ie., several thousand at least).

Each image will have it's own publicly accessible URL, and so I could, of course, send up a simple HTML page with several thousand of <img.../> tags. But, that will likely be a no-go since an HTML of that size would take too long to download.

I'm thinking that I can write some javascipt that would dynmaically create my thumbnail image gallery for me within the browser. I have code on the server that will return the image URL for each 'cell' in the gallery.

But I don't know the best way to make that happen.
------------

My skills are rustty in this area to be sure, so can anyone gimme some guidance on this ?

thanks in advance,
b3zra1y
 
Yes- that's what I was thinking.
But I'm not altogether sure.
Was looking for advice.

If there are only 100 images in view on the page... would it make sense to have those that are still 'out of view' pulled in via AJAX only when the user scrolls down to see them ?
 
Hi

b3zra1y said:
would it make sense to have those that are still 'out of view' pulled in via AJAX only when the user scrolls down to see them ?
No, not really. You may load the image URLs with AJAX, but there is no reason to load the images too.

Feherke.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top