I still with problems. When the "onblur" submit the form, the
autocomplete didn't finish yet. The consequence is that when I select
something from autocomplete and press tab the string submitted was
only part of what I wrote (ex.: I write "fran", the autocomplete
suggest "France", if I select or press tab the string posted is
"fran").

The autocomplet works fine withouth jeditable and vice-versa. Some one
has a clue of what is wrong?

Here is the code:

     $.editable.addInputType('autoc', {
          element: function(settings, original) {
             var input = $('<input type="text" id="know_through">');

             input.autocomplete(contactList,
                {
                    matchContains: true,
                    mustMatch: true,
                    formatItem: function(data) {
                     var data = data[0].split("|");
                     return data[1];
                },
                formatResult: function(data) {
                     return data[1];
                }
                }
             );

             $(this).append(input);
             return input;
          }
      });

      $(".autocomplete").editable(baseUrl() + "/editajax", {
          type   : "autoc",
          indication: "Tallennetaan...",
          tooltip: 'Klikkaa muokataksesi...',
          submit : 'Tallenna',
          onblur : 'submit',
          id: 'field',
          rows: 10,
          cols: 60
     });


On Nov 16, 2:16 pm, tennis_blues <[email protected]> wrote:
> yes, thanks...this is exactly what i needed!  yourjeditableis great
>
> On Nov 14, 2:24 pm, "[email protected]"
>
> <[email protected]> wrote:
> > That is exactly why I posted. I noticed that you had done a lot of
> > work on inputs. Unfortunately I could not figure out how to do it
> > myself from reading through your website. Thanks again for your help.
>
> > -jl
>
> > On Nov 13, 1:51 am, Mika Tuupola <[email protected]> wrote:
>
> > > On Nov 12, 2008, at 9:25 PM, [email protected] wrote:
>
> > > > Wow, that was sooo simple. Works like a charm!
> > > > Impressive.. Now, thats the way a plugin should work.
> > > > Nice work Mike.
>
> > > Thank you :) Usually when someone has the need to do something special  
> > > (such as useautocomplete) withJeditablethere is no need to touch  
> > > Jeditablecode itself. All you need to do is to write a custom input.
>
> > > The reason why I created the plugin architecture (plugins for plugin)  
> > > was to avoid bloat. Take 10 people and they have at least eight  
> > > different needs. Making all their needs a configurable option would  
> > > bloat the code.
>
> > > Thus the solution: Make all basic features configurable and create API  
> > > with which people can extend the features how ever they want.
>
> > > --
> > > Mika Tuupolahttp://www.appelsiini.net/-Hide quoted text -
>
> > - Show quoted text -

Reply via email to