anauj0101 Posted May 29, 2009 Share Posted May 29, 2009 I am not completely new to PHP but have only recently been creating anything of substance. What I want to do is make a webpage that has a box with an image, below that image a list of files from a directory. When the user clicks one of the files, display that in the box with the image. I look forward to any help that can be given, thanks. Link to comment https://forums.phpfreaks.com/topic/160130-picture-box-that-changes-based-on-input/ Share on other sites More sharing options...
gevans Posted May 29, 2009 Share Posted May 29, 2009 When you say box do you mean div? And by display that with the image do you just mean the folder name? If so does it need to be remembered or do you just want a javascript function to do it? What's your complete outcome of this? Link to comment https://forums.phpfreaks.com/topic/160130-picture-box-that-changes-based-on-input/#findComment-844940 Share on other sites More sharing options...
lonewolf217 Posted May 29, 2009 Share Posted May 29, 2009 you will want to look into AJAX or jquery. basically the theory is that you have an empty DIV on your main page. The links below this div will generate a javascript query to a backend page to process the link and display the relevant image in the div on the first page. All without reloading the main page at all Link to comment https://forums.phpfreaks.com/topic/160130-picture-box-that-changes-based-on-input/#findComment-844957 Share on other sites More sharing options...
gevans Posted May 29, 2009 Share Posted May 29, 2009 you will want to look into AJAX or jquery. I'd recommend looking into jQuery and AJAX jQuery is a javascript framework to make life easier AJAX (asynchronous JavaScript and XML) is a technique incorporating javascript Link to comment https://forums.phpfreaks.com/topic/160130-picture-box-that-changes-based-on-input/#findComment-844964 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.