Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Firefox doesn't fire $(document).ready(function() {

Tags:

jquery

I have a page that uses the jquery function:

$(document).ready(function() {

and I have put an alert in there, and tried everything. It does not fire in firefox. But it works fine in IE and Chrome.

I have checked everything in firebug, and it's just not firing.

Here is the page it isn't working on: http://www.halotracker.com/UserVideos.aspx

On this page, the FS is deep within the site, but, I have tried putting it at the very top inside the head. Neither way works.

Thanks in advance for your time.

like image 953
bladefist Avatar asked Jul 24 '10 22:07

bladefist


1 Answers

<script type="text/jscript">

is probably not going to fire in Firefox: JScript is Internet Explorer's interpretation of JavaScript. Use

<script type="text/javascript">

Other than that, it looks like it should work fine (even though it would be really better and cleaner to have this stuff in the head part.)

like image 171
Pekka Avatar answered Nov 13 '22 22:11

Pekka