Can run Javascript but not jQuery?
Posted
by
blazonix
on Stack Overflow
See other posts from Stack Overflow
or by blazonix
Published on 2014-05-27T08:15:31Z
Indexed on
2014/05/27
9:26 UTC
Read the original article
Hit count: 235
JavaScript
|jQuery
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
© Stack Overflow or respective owner