Jump to content

image selection


vmicchia

Recommended Posts

Ok what I want to do is have some images on the right hand side of the screen and when you click one the image appears on the left part of the screen. I know how to do this normally but I want to do this without the page refreshing. Basically the images are pulled from a database and populated in this list using php. This is going to be made more complex as it goes along but I need somewhere to start. Thank you so much for any ideas or help.

Link to comment
https://forums.phpfreaks.com/topic/204197-image-selection/
Share on other sites

You actually don't need to use Ajax for this. You can use fairly simple JS. Just create a JS function that changes the source of the left image. Then, when you load the page, and the thumbnails on the right, just pass the large image source into that JS function with an onclick event.

Link to comment
https://forums.phpfreaks.com/topic/204197-image-selection/#findComment-1069510
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.