i need to sort some display data by first name, last name, city..
how can i do that with ajax... need some help
PHP + AJAX Sorting
Moderator: General Moderators
Re: PHP + AJAX Sorting
Hello,
Providing your already displaying the data in some sort of tabular way, you should be able to sort using Javascript alone without the need of AJAX. I wouldnt personally use AJAX for sorting unless im missing the point, which is quite likely!!
I used to have a basic structure for a table sorter written in Javascript, I dont really have time at the moment to sit and make you something but if you google 'javascript table sort' im sure something will turn up!

Providing your already displaying the data in some sort of tabular way, you should be able to sort using Javascript alone without the need of AJAX. I wouldnt personally use AJAX for sorting unless im missing the point, which is quite likely!!
I used to have a basic structure for a table sorter written in Javascript, I dont really have time at the moment to sit and make you something but if you google 'javascript table sort' im sure something will turn up!
Re: PHP + AJAX Sorting
ok thank you so much juma... i already find some code that do sorting but i need to do with ajax...
Re: PHP + AJAX Sorting
Hello,
I'm sorry, I dont think I can help you any further, I really dont understand your need to use AJAX. Would you be able to explain the scenario in a little more detail so that I can understand exactly why you need AJAX and how you need it to all work, then I can advise better.
Unless somebody else on the forum isnt missing the point quite as much as me and can help you!
.
Thanks
I'm sorry, I dont think I can help you any further, I really dont understand your need to use AJAX. Would you be able to explain the scenario in a little more detail so that I can understand exactly why you need AJAX and how you need it to all work, then I can advise better.
Unless somebody else on the forum isnt missing the point quite as much as me and can help you!
Thanks