Skip navigation

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.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: