Ajax Add, Edit, Delete & Now Sort
Posted 4 months, 1 week ago at 8:17 pm. 1 comment
Update: Version 2.1 of this script is now available. I highly recommend you download the new version. You can do that here.
Yup that’s right. After a request from Nick in a comment I have added the ability to sort the information in the table. It includes the ability to sort by any column in ascending or descending order. You can stop sorting on certain columns such as the delete column, the code for this can be found on the listmulti.php page. It also solves the problem that was caused when updating or adding to the table via AJAX.
The scripts, including the CSS & arrow pictures for styling, can be downloaded from the bottom of my previous post on this script. If you need any help just ask, either in this post or the latter.
Hope you like it.
EDIT: I have left a little bit of code in the ajaxmulti.php that I shouldn’t have. It shouldn’t affect anything but if it doesn’t work then please take out this line of code:
50 | $key = str_replace("#038;","",$key); |
Again it shouldn’t cause any problems but if there are any please remove that first. If your curious it stops a little problem that WP causes on my demo page.





