Question

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?

Was it helpful?

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}'
 });
}); 

OTHER TIPS

Is the '$' object loaded first? Make sure jquery is loaded before you attempt to use this script.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top