That's the final patch - I want this callback in the same return data
list format as "source" option callback

insert on line: 362
<pre>
        } else if (options.ajax && typeof options.ajax == 'function')
{
            var dataCallback =
                function(resultData) {
                                        var parsed = options.parse && 
options.parse(resultData) ||
resultData;
                                        cache.add(term, parsed);
                                        success(term, parsed);
                                };
            options.ajax(term, dataCallback);
</pre>

And I describe my idea again. The option I offer works like follows:

1. We provide autocomplete with our AJAX callback function
".autocomplete({ ajax: myCallback });"
2. When autocomplete needs data - it calls our AJAX function
"myCallback(dataCallback)" and provide it with internal callback
function "dataCallback"
3. We make an AJAX request
4. When AJAX request finish it calls internal autocomplete's function
"dataCallback(list)" and provide the list there


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to