Jump to content

Expand and run Script


adzie

Recommended Posts

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

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.

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.

 

 

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.