Hi i tried this in Chrome and FF3,

  echo '<div class="countdown">10 seconds!</div>';
  jquery_countdown_add(".countdown", array("until" => date("10,3,2009")));

and it works but not in IE7..

Any idea why's that? Thanks.

Comments

robloach’s picture

Assigned: Unassigned » robloach

I'll check it this week through #351654: Documentation. I think the problem here is that you're passing a PHP date when it expects a numeric.... I guess it doesn't take exact dates into consideration? I'll have a look at making it work with a string representing an exact date or something....

dropchew’s picture

Thanks, looking forward to it : )

robloach’s picture

If you use a number, like 10, it should work. I'll have a try at getting it working with strings.

robloach’s picture

http://drupal.org/cvs?commit=162720 adds implementation of hook_help() with some examples.

It appears I did take strings into consideration. It works with strings (passed straight to JavaScript date objects), arrays (passed as parameters to date object), and numbers (seconds)........

Try it with the following:

  jquery_countdown_add('.countdown', array('until' => 'November 3, 2009'));
dropchew’s picture

its working in IE7 now. thanks!

robloach’s picture

Status: Active » Fixed

Yay!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.