(autocomplete) syntax error on response parsing.
Hi all, i'm trying to use the autocomplete plugin with a remote call but i'm getting a weird problem:
the code correctly invoke the remote address and gets a response back, but it doesn't show anything in the textfield to which it's linked and throws a javascript syntax error.
Unfortunately the code isn't live so i can't show you a test page, but the code itself is really simple and perfectly works if the dataset with the possible matches is loaded locally.
Here's the code:
- $(document).ready(function(){
- $("#C_BIN1").autocomplete("main.app", {
- selectFirst: false,
- extraParams: {FUNCTIONID: "RecuperoBin"}
- });
- });
this is the textfield:
- <input type="text" name="C_BIN1" id="C_BIN1" class="textfield" size="8" maxlength="6" value=""/>
and this is an excerpt of the response:
270000
270001
270002
270003
270004
270005
270006
and, finally, here's what firebug debugs:
syntax error