|
|
 |
Re: FN-FORUM: PHP version of ASP datagrid?
date posted 21st May 2007 11:54
That was going to be my suggestion (sans AJAX). Use tickboxes with record Id's to identify them, on submission build an array of the tickboxes which can be looped through checking the ticked/unticked status of each in turn and building the appropriate SQL string in the process.
--------
I'm pretty sure its impossible to customise right click menus from a website
so there will have to be some kind of button which you click in order to
perform each task. The best way to select rows would probably be with a
checkbox at the end of each row and maybe a link that uses javascript to
select all rows.
You could use each records id number to identify each check box uniquely and
then use javascript to loop through each checkbox, check its state and then
build a query based on this. AJAX could then be used to submit the query to
the server and reload the data into the table.
Sort and Filter features could also be implemented using AJAX.
This is just my initial ideas on how I would solve the problem, i haven't
done any research into this to see it if is possible etc so someone please
correct me if there is a better way.
James
--
Freelancers, contractors earn more with Prosperity4
Call 0870 870 4414 or visit www.prosperity4.com
and benefit from Inland Revenue approved expenses today.
To advertise here: http://www.freelancers.net/advertising.html
|
 |
|