Search code examples
jqueryajaxgetscript

Firebug is throwing a ' $( ' error?


I am getting a strange error in Firebug, that I am not getting in Webkit. The error comes up as ' $( ' in firebug.

Here's the code that is supposedly causing it to flip:

$.getScript("http://kylehotchkiss.com/min/?g=packageHome", function() {
 $(".countdown").countdown({
  until: new Date(2010, 6 - 1, 5),
  layout:'{dn} {dl}'
 });
}); 

The error isn't specific to the countdown script, it's just giving me an error trying to call any plugin I just loaded in firefox. Any ideas?


Solution

  • Have you tried using jQuery() instead of $ ?

    jQuery.getScript("http://kylehotchkiss.com/min/?g=packageHome", function() {
     jQuery(".countdown").countdown({
      until: new Date(2010, 6 - 1, 5),
      layout:'{dn} {dl}'
     });
    });