This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use the new forum.
Home » plugins » Javascript plugins » sfFormExtraPlugin's autocompleter does not work
sfFormExtraPlugin's autocompleter does not work [message #94299] Thu, 25 February 2010 17:33
Sejanus  is currently offline Sejanus
Messages: 3
Registered: February 2010
Junior Member
I'm trying to customize default doctrine generated form with some fancy Ajax stuff and it doesn't work.

I have installed sfFormExtraPlugin and I also have jQuery and jQuery UI installed (or so I think...).

The auto-generated code causing error:

jQuery(document).ready(function() {
    .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]); });

And the error message:

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

thanks in advance for your help Wink I'm really stuck...
Previous Topic:JQuery: Hiding/Showing div
Next Topic:mustMatch in JQuery Autocompleter
Goto Forum:

powered by FUDforum - copyright ©2001-2004 FUD Forum Bulletin Board Software