jamesbrauman Posted October 19, 2008 Share Posted October 19, 2008 I'm looking for some way to display all the available avatars to a user when they are registering, and letting them to be able to select one. I have about 300 50x50 avatars and I would like to show them in a box about 200px high and 800px wide. How can I do this (which avatar the user selected also needs to be posted to my php application)? Quote Link to comment Share on other sites More sharing options...
Zane Posted October 19, 2008 Share Posted October 19, 2008 unless you plan on having all 300 avatars listed on the page at once I would have a small DIV popup on some sort of trigger with 3 or so columns of avatars in it....and have previous and next arrows within the div load all the avatars into a javascript array so they are preloaded and show them.....say 20 or 50 at a time Quote Link to comment Share on other sites More sharing options...
Acs Posted October 19, 2008 Share Posted October 19, 2008 Also try to use ajax so when going to the next 20 or 50 you don't have to reload the entire page Quote Link to comment Share on other sites More sharing options...
Zane Posted October 19, 2008 Share Posted October 19, 2008 there's no reason to use AJAX when all the avatars can already be preloaded just use simple javascript to update the DIV Quote Link to comment Share on other sites More sharing options...
Acs Posted October 19, 2008 Share Posted October 19, 2008 But why preload 300 avatars if the users picks the first or second? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.