W
webEater
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
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