Hi! If I try to use InPlaceEditor it raises this error: this.element.getStyle is not a function http://portatil:9680/sistes.net2/Javascripts/controls.js Line 498 Do you know why I have this error? Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Garito a écrit :> Hi! > If I try to use InPlaceEditor it raises this error: > > this.element.getStyle is not a function > http://portatil:9680/sistes.net2/Javascripts/controls.js > Line 498You likely are not using matching versions of Prototype and script.aculo.us. Try upgrading to the latest versions (this may required updating bits of your Prototype-based code, notably Hash-dependent parts), i.e. Scripty 1.8 final and Prototype 1.6 final, and try again. -- Christophe Porteneuve aka TDD tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Hi, Christophe! Sorry but I update the scripts with the same result: /* Prototype JavaScript framework, version 1.6.0 // script.aculo.us scriptaculous.js v1.8.0, Tue Nov 06 15:01:40 +0300 2007 // script.aculo.us controls.js v1.8.0, Tue Nov 06 15:01:40 +0300 2007 this.element.getStyle is not a function http://portatil:9680/sistes.net2/Javascripts/controls.js Line 498 Some idea? Thanks! On 17 nov, 18:43, Christophe Porteneuve <t...-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org> wrote:> Garito a écrit : > > > Hi! > > If I try to use InPlaceEditor it raises this error: > > > this.element.getStyle is not a function > >http://portatil:9680/sistes.net2/Javascripts/controls.js > > Line 498 > > You likely are not using matching versions of Prototype and > script.aculo.us. Try upgrading to the latest versions (this may > required updating bits of your Prototype-based code, notably > Hash-dependent parts), i.e. Scripty 1.8 final and Prototype 1.6 final, > and try again. > > -- > Christophe Porteneuve aka TDD > t...-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Garito a écrit :> Hi, Christophe! > Sorry but I update the scripts with the same result: > > this.element.getStyle is not a function > http://portatil:9680/sistes.net2/Javascripts/controls.js > Line 498OK, the only way you can get that is if you passed an incorrect value for the element argument of you IPE call. Can you verify that what you pass as first parameter to new Ajax.InPlaceEditor is indeed either a valid element node or a valid ID? There''s no way that it IS so, and that getStyle doesn''t exist: prior lines in the constructor ensure this.element is extended. If in doubt, patch the IPE constructor for a minute and insert debug output before line 498, for instance with Firebug: console.log(''this.element = '' + this.element.inspect() + '' - Prototype version = " + Prototype.Version); This lets you verify this.element isn''t null (e.g. bad ID being passed), and that you''re using the proper Proto version (expectedly 1.6). ''HTH -- Christophe Porteneuve aka TDD tdd-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Ouau, man! Do you spy my computer (joking)? That''s the problem: the object is not an object Chapeau! Thank you so much! On 17 nov, 20:15, Christophe Porteneuve <t...-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org> wrote:> Garito a écrit : > > > Hi, Christophe! > > Sorry but I update the scripts with the same result: > > > this.element.getStyle is not a function > >http://portatil:9680/sistes.net2/Javascripts/controls.js > > Line 498 > > OK, the only way you can get that is if you passed an incorrect value > for the element argument of you IPE call. Can you verify that what you > pass as first parameter to new Ajax.InPlaceEditor is indeed either a > valid element node or a valid ID? > > There''s no way that it IS so, and that getStyle doesn''t exist: prior > lines in the constructor ensure this.element is extended. > > If in doubt, patch the IPE constructor for a minute and insert debug > output before line 498, for instance with Firebug: > > console.log(''this.element = '' + this.element.inspect() + '' - Prototype > version = " + Prototype.Version); > > This lets you verify this.element isn''t null (e.g. bad ID being passed), > and that you''re using the proper Proto version (expectedly 1.6). > > ''HTH > > -- > Christophe Porteneuve aka TDD > t...-x+CfDp/qHev2eFz/2MeuCQ@public.gmane.org--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---