View Single Post
Old 08-30-2012, 10:24 PM   PM User | #2
AndrewGSW
Senior Coder

 
Join Date: Apr 2011
Location: London, England
Posts: 2,120
Thanks: 15
Thanked 354 Times in 353 Posts
AndrewGSW will become famous soon enough
Just my two cents:

Best advice, as suggested, is to use one framework or the other (prototype OR jQuery etc.). No matter what plug-in or feature you would like to use, a comparable version can always be found in the other framework.

Can I also repeat the need to WAIT UNTIL THE PAGE HAS FULLY LOADED before attempting to reference any element on the page. In jQuery:

Code:
$(document).ready(function() {
    // reference page elements, attach events, here!
});
or even the shorthand version:

Code:
$(function () {  
    // your code  
});
The elements on the page DO NOT EXIST until the page has loaded.

This is the most common error.
__________________
"I'm here to save your life. But if I'm going to do that, I'll need total uninanonynymity." Me Myself & Irene.
Validate your HTML and CSS

Last edited by AndrewGSW; 08-30-2012 at 10:34 PM..
AndrewGSW is offline   Reply With Quote