You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ruby on Rails: Spinoffs
I just installed the new version of prototype but got the following
error in Firefox:
$(parentElement || document.body) has no properties
on line 4180 of prototype.js.
Has anyone else run into this error and been able to fix it?
Thanks in advance,
Vinicius
jdalton
unread,
Jul 9, 2008, 9:36:53 PM7/9/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ruby on Rails: Spinoffs
Are you calling document.getElementsByClassName before the dom loads?
document.getElementsByClassName is deprecated because some browsers
support it natively and their implementation is different than
Prototypes. You should use $$() instead and only after the dom loads.
- JDD
T.J. Crowder
unread,
Jul 10, 2008, 3:02:51 AM7/10/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ruby on Rails: Spinoffs
Hi,
We've started transitioning to a new, better-named, hopefully-spam-
free group for Prototype and script.aculo.us:
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ruby on Rails: Spinoffs
@Frederick - in this case
$A(document.getElementsByClassName('classname')) would convert the
nodeList into an array (arrays are naturally extended via
their .prototype). In Firefox and other browsers all HTML elements
inherit from the Element.prototype so the elements would already be
extended.
@Peter - The fact that document.getElementsByClassName() is deprecated
is reason enough not to use it. Also it is painfully long to type
whereas $$() or element.select() are much easier.
- JDD
Vinicius Vacanti
unread,
Jul 14, 2008, 7:27:00 PM7/14/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message