vmicchia Posted June 8, 2010 Share Posted June 8, 2010 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 More sharing options...
F1Fan Posted June 8, 2010 Share Posted June 8, 2010 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.