bladefist bladefist - 11 months ago 140
jQuery Question

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

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.

Answer Source
<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.)

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download