Page 1 of 1

PHP + AJAX Sorting

Posted: Tue Aug 18, 2009 12:46 am
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

Re: PHP + AJAX Sorting

Posted: Tue Aug 18, 2009 8:09 am
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!

:)

Re: PHP + AJAX Sorting

Posted: Tue Aug 18, 2009 10:58 pm
by naeem084
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

Posted: Wed Aug 19, 2009 3:13 am
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