Works for me... are you using Prototype 1.5.2pre0 (i.e. edge ?)
This syntax isn''t available in any release yet.
Regards,
Tobie
On Jun 26, 11:17 pm, webEater <andreaskal...-Mmb7MZpHnFY@public.gmane.org>
wrote:> Does anybody have good knowledge about prototype''s DOM creator.
> Something like this ..
>
> var Link = new Element(''a'', {
> href: ''layout.php''
>
> });
>
> document.body.appendChild(Link);
>
> .. doen''t work. My Firebug shows an error: "Object cannot be
created
> in this context" code: "9"
> I don''t know what that means. Isn''t there a native
Element constructor
> in modern Browsers like Firefox that prototype extends?
>
> Andi
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---