tags:

views:

71

answers:

3

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.

+11  A: 
<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.)

Pekka
+1 nice spot, naughty visual studio intellisense at play!
redsquare
This is correct solution. Thanks. The Visual Studio IDE did this for me and I didn't notice.
bladefist
A: 

I'm afraid I have no idea about how to fix the $(document).ready function, but this question has some possible solutions on how to work around it. Not sure if that's what you're looking for.

Stephen
A: 

Btw, you can write it even shorter:

$(function() {
cypheon