My solution:
Since I'm using PHP 5.2+, I'm able to use the json_encode function
like this:
while($speaker = mysql_fetch_object($speaker_query)){
$encodable[] = $speaker;
}
$encoded = json_encode($encodable);
echo $encoded;
Then, in the javascript function:
var searchurl = $("#speaker
I'm sort of trying to do the same thing and I got it working, to an
extent. The only problem is that I'm not using JSON and when I tried
to use JSON, it didn't display any search results, even though Firebug
showed the results were working.
I'm using a php backend.
Here's what I have in my javas
Ladksak,
try to set the option matchContains to true.
Regards
Patrick
On Sep 3, 5:59 pm, ladksak wrote:
> the problem is that i need it to work with the script i posted the
> link
>
> thats because the UIAutocompleteis not as good...
> if i type "ODE" in the ui he doesn't show CODE
>
> i need
nobody knows? :p
On 3 set, 12:59, ladksak wrote:
> the problem is that i need it to work with the script i posted the
> link
>
> thats because the UI Autocomplete is not as good...
> if i type "ODE" in the ui he doesn't show CODE
>
> i need it to "ODE" show CODE and ODESSA, like he could find th
the problem is that i need it to work with the script i posted the
link
thats because the UI Autocomplete is not as good...
if i type "ODE" in the ui he doesn't show CODE
i need it to "ODE" show CODE and ODESSA, like he could find the string
in any part of the keywords and highlight that
thats w
Based on http://plugins.jquery.com/project/autocompletex
$("#search").autocomplete("/searchAutocomplete", {
dataType: "json",
parse: function(data) {
return $.map(data, function(row) {
return {
data: row,
6 matches
Mail list logo