Jump to content

Ajax - Load New Pictures on click of link.


DevXen

Recommended Posts

Hello, I have'nt done anything in Ajax yet, but I was told that what i would like to do, Ajax would be the way to go about it... i've been looking online. and can't even find where to start... but here's what i'm trying to do.. so if anyone out there has any ideas, or tips, or anything that can get me in the right direction that would be great..

 

I have a table with 4 cells and a picture in each cell.. *they are flyers for upcoming shows at my friends bar* // I want to click on a next link, to have ajax load the next 4 upcoming show flyers, in the same table cells. then also have one for 'previous' to load the previous show flyers.. i've looked into preloading all the images, and that will make the page load to quick. esp. when more and more flyers get added to it as time passes.. so just have it load the 4 new pictures, at the request (clicking on the next or previous link). should be just fine...

 

 

Link to comment
Share on other sites

Hi

 

While you could do this with Ajax, unless the events are being created all the time (ie, several popping up while looking at the page) I would just use javascript. Generate the page with an array of images, and once the page is loaded display that pages ones from the array.

 

All the best

 

Keith

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.