adzie Posted November 16, 2008 Share Posted November 16, 2008 Hello Folks, Initially I'm after some advice and then maybe some assistance / direction. I currently run a script to show results from a database. What I'd like to do is set it so that when I click on one of the results it could expand that run to run another script to show below that result, a sort of expand collapse scenario. I suspect that AJAX would be the solution if any so appologise of this may be the wrong forum. So if the results were 0421 User level1 metal 0231 Another leve7 wood If I was to click on the number 0421 it would expand another script? any advice I would appreciate Link to comment https://forums.phpfreaks.com/topic/132933-expand-and-run-script/ Share on other sites More sharing options...
JasonLewis Posted November 16, 2008 Share Posted November 16, 2008 On the same page? Or can it reload? If you want the same page then yes, you would need to use some AJAX to get the desired effect. I would suggest looking into a JavaScript Framework like jQuery or Prototype to do most of the work, since it'll make things a heck of a lot easier for you. Link to comment https://forums.phpfreaks.com/topic/132933-expand-and-run-script/#findComment-691268 Share on other sites More sharing options...
adzie Posted November 16, 2008 Author Share Posted November 16, 2008 the same page would be good. I did use a frame based solution that was simple in that click a link the next page would open in the same frame area. Ideally I'd like for a similar thing without frames hence why I thought of expand or collapse option. Link to comment https://forums.phpfreaks.com/topic/132933-expand-and-run-script/#findComment-691275 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.