On Thu, Oct 15, 2009 at 4:44 PM, pixeline <aplennev...@gmail.com> wrote:
>
> Hi!
>
> I'm trying to use the jeditable plugin to update a lot of different
> strings coming from various part of the database.
>
> I would like to set it like this:
>
> $("span.editInPlace").editable($(this).attr('rel'), {
>        indicator : 'Un instant, sauvegarde en cours...',
>        tooltip   : 'Cliquez sur le nom pour le modifier.'
>    });
>
>
> But Firebug throws me an error :
>
> Erreur : uncaught exception: [Exception... "Component returned failure
> code: 0x80070057 (NS_ERROR_ILLEGAL_VALUE) [nsIXMLHttpRequest.open]"
> nsresult: "0x80070057 (NS_ERROR_ILLEGAL_VALUE)"  location: "JS
> frame :: http://youplaboum.dev/_js/jquery-1.3.2.min.js :: anonymous ::
> line 19"  data: no]
>
>
> If i hardcode the url instead of using the rel attribute, it works.
> But i would really like to have just one javascript call for all my
> editable zones, and be able to specify the url via an attribute.

The span element cannot have a rel attribute. Also, I'm pretty sure a
URL has characters that cannot be used in rel. Try putting the URL in
the span's title attribute instead.

Reply via email to