Can run Javascript but not jQuery?
- by blazonix
I'm running into a strange problem - I tried running a basic function in JS and jQuery, and while the former worked, the latter didn't.
JS - okay
alert('Works');
jQuery - not okay
$(document).ready({
alert('Works');
});
Here's some facts:
My references to the jQuery library are correct
(And pretty sure my Internet connection is steady :)
I'm using a CDN - CloudFlare to be exact, but I've switched development mode on and Rocket Loader off - so all the code I've uploaded to the server is WYSIWYG (CloudFlare adds some stuff in the tags if you leave Rocket Loader on.
I tried running the alert code in the head section, and elsewhere in the body tags, to no avail.
What could have possibly gone wrong?
EDIT 1: The page is here - http://casestudieslounge.com/chat/BIM/WebContent/chat.php