Hello, I'm trying to use jQuery UI with symfony and I keep getting this error (Firefox error console):
Error: jQuery("#autocomplete_table1_table2").autocomplete("http://myurl/frontend_dev.php/model/ajax", jQuery.extend({}, {dataType: "json", parse: function (data) {var parsed = [];for (key in data) {parsed[parsed.length] = {data: [data[key], key], value: data[key], result: data[key]};}return parsed;}}, {})).result is not a function Source File: http://myurl/frontend_dev.php/model/action Line: 104 The code supposedly causing error is autogenerated by symfony and looks like this: jQuery(document).ready(function() { jQuery("#field_id") .autocomplete('/frontend_dev.php/module/ajax', jQuery.extend({}, { dataType: 'json', parse: function(data) { var parsed = []; for (key in data) { parsed[parsed.length] = { data: [ data[key], key ], value: data[key], result: data[key] }; } return parsed; } }, { })) .result(function(event, data) { jQuery("#field_id").val(data[1]); }); }); Could anybody help with this, please? -- View this message in context: http://old.nabble.com/.result-is-not-a-method-error-tp27717686s27240p27717686.html Sent from the jQuery UI Discussion mailing list archive at Nabble.com. -- You received this message because you are subscribed to the Google Groups "jQuery UI" group. To post to this group, send email to jquery...@googlegroups.com. To unsubscribe from this group, send email to jquery-ui+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/jquery-ui?hl=en.