Tench
2005-Aug-06 05:11 UTC
[Rails-spinoffs] why is the result of expr. Ajax.InPlaceEditor not an object in Safari
hi guys.
i''m really thrilled about the in-place editor and rahul''s
additions/
examples at http://www.instituteofthefuture.org/js/inplace.php
i know that this "mozilla only" script will eventually get fixed and
be usable in safari as well, but i can''t wait, so i''ve tried
to poke
around a bit -- of course, without success. i am much more of an
"end user" than "developer"...
but maybe somebody on this list will know the answer to this
question: why is the result of expression Ajax.InPlaceEditor not an
object in Safari? Namely, that is the error message when I try using
in-place editor in Safari...
also, i get a parse error pointing to:
this.options = Object.extend ({ //etc.
any tips would be appreciated...
all best,
tench
Martin Bialasinski
2005-Aug-06 07:38 UTC
[Rails-spinoffs] why is the result of expr. Ajax.InPlaceEditor not an object in Safari
On 06/08/05, Tench <psychomachine@mac.com> wrote:> why is the result of expression Ajax.InPlaceEditor not an > object in Safari? Namely, that is the error message when I try using > in-place editor in Safari...The interesting thing is, that it is not an error in Mozilla. this.cache = Object.extend({ response: null, backgroundColor: null, }); this call is missing the second object. It should be this.cache = Object.extend({ response: null, backgroundColor: null, }, {}); Which is equivalent to this.cache = { response: null, backgroundColor: null, }; Bye, Martin