PHP + AJAX Sorting

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
naeem084
Forum Newbie
Posts: 7
Joined: Mon Aug 17, 2009 12:16 am

PHP + AJAX Sorting

Post by naeem084 »

i need to sort some display data by first name, last name, city..

how can i do that with ajax... need some help
User avatar
juma929
Forum Commoner
Posts: 72
Joined: Wed Jun 17, 2009 9:41 am

Re: PHP + AJAX Sorting

Post by juma929 »

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!

:)
naeem084
Forum Newbie
Posts: 7
Joined: Mon Aug 17, 2009 12:16 am

Re: PHP + AJAX Sorting

Post by naeem084 »

ok thank you so much juma... i already find some code that do sorting but i need to do with ajax...
User avatar
juma929
Forum Commoner
Posts: 72
Joined: Wed Jun 17, 2009 9:41 am

Re: PHP + AJAX Sorting

Post by juma929 »

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 :D
Post Reply