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
[EMAIL PROTECTED]
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---