JQuery snippet no longer works on new server.

Hi All,

My knowledge of Jquery and javascript is not all that great but just moved my site to a new server and for some reason this code no longer hides the element on pageload:

Event.observe(window, 'load', function() {
		$$('.hide_on_start').each(function(node) {
			node.hide();
		});

Open in new window


Not sure what would cause this to happen but any element given the "hide_on_start" class should be hidden when the page is first loaded.

Any ideas why this has happened?
LVL 1
MulithAsked:
Who is Participating?
 
maeltarCommented:
Has the path to jquery changed ?

Use firebug and see what the errors are...

http://getfirebug.com/
0
 
chaitu chaituCommented:
$('.hide_on_start').
0
 
MulithAuthor Commented:
Ahh yes thank you maeltar, got  "Ajax not defined" error which then made me realize that I'd commented out prototip and scriptaculous reference.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.