Results using Ajax, php already orders results, how: putting order modus from autosuggest off.

Harwin's Avatar


01 May, 2011 08:12 PM

Hello everyone,

I got everything working on the jquery autosuggest plugin, but now i want to have to last thing done. I don't want to use all the features of autosuggest.

I don't need to autosuggest 'order' function to select my results because i am using Ajax to get my results,. The php script i am going to use already orders the results and the autosuggest plugin changes the order of those results and let some of the results away.

The question is,
1. does anyone know how to disable the 'order' function from autosuggest and
2. how can I show all the results the ajax page is giving me without making autosuggest putting some results away?



ps I apologize for my poor english

  1. 1 Posted by Harwin on 12 May, 2011 07:53 PM

    Harwin's Avatar

    Hello again,

    I found out how to show all te results the Ajax page is giving me, you only need to change 1 variable for it:

    var forward=false;

    has to be

    var forward=true;

    You can find it in this function:

    function processData(data, query){
                    if (!opts.matchCase){ query = query.toLowerCase(); }
                    var matchCount = 0;
                    for(var i=0;i<d_count;i++){             
                        var num = i;
                        var forward = true; //false <-This one needs to be true if you want to show all te results from Ajax

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac