i was trying to bring prototype into a non-prototype page and this error happened:
element is null
on page load.
BUT I DIDN’T DO ANYTHING WITH PROTOTYPE YET!!
How come its not loading?
Well it turns out I’m so in love with prototype that I had already defined:
function $(a)
{
return document.getElementById( a ) ;
}
as you recognize as a commonly used prototype convenience function. once that function decl is deleted, prototype now integrates beautifully into my already javascript-caked page.