jquery - Javascript declaration issue -


//problem solved// turned out jquery ajax call couldn't reach url in browsers.

thanks anyway guys, quick responses, definitly helped work out.

sorry non-specific title, don't think should problem.

there jquery plugin (http://keith-wood.name/countdown.html) counts down specific date or time.

the end time counter should start can defined in 2 ways: either setting date either setting number of seconds left.

my project needs second 1 , based on documentation option has declared like:

$('#digital_hour').countdown({until: +300}); 

notice "+" sign before number.

it works nice on os , device, until replace number 300 variable stores seconds left until end of day on server. version:

$('#digital_hour').countdown({until: +seconds_left_on_server}); 

works on specific browsers, on others don't. strangly enought works under vista/mozilla20.0 combo, doesn't on vista/ie6, nor on friends ubuntu/mozilla combo.

i'm not huge javascript admirer, nor expert on subject, feel there around "+" sign.

can help?

you can try with

$('#digital_hour').countdown({until: new date(+(new date()) + 1000 * seconds_left_on_server)}); 

Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -