hi everyone,
I'm fairly new to this technology, and I'm trying to use the autocomplete widget, but I don't seem to be making it work properly...
I'm trying to set the source for the autocomplete and have this so far:
(I came up with this solution because json_encode() is not available for my PHP version, and I also tried with some workaround functions (to mimic it's behavior) I found somewhere in a blog or php.net but nothing happened)
I have a table in MySQL which I access through PHP (4), and I create a string with all the data in the fields so that it looks like
"value1", "value2", "value3"
when I 'echo' it,
then I assign that string to the value in an <input type="hidden" > element
I retrieve the value for that input to a javascript variable using .val(),
then set the source as the variable between '[ ]'
and all I get as a "suggestion" in the text input for my application is the first part of the source, I mean, the first word, which in this case would be "value1", no more, even if the rest of the string elements have also the same characters in them
I'll try to post my "project", but in the meantime, please give me a hand, I'm going crazy with this.. :(
thank you in advance!