문제

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?

도움이 되었습니까?

해결책

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

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top