This topic is locked

Timer count down

4/22/2010 4:42:28 AM
ASPRunnerPro General questions
E
ehotbid author

I have the end time of the product on the column,
I dont want to show that end time date,instead I want to show the remaining [size="4"]time: Minit: second[/size] counting down
in count down how to do let me know.

Sergey Kornilov admin 4/22/2010

There is a bunch of countdown scripts on the web. Here is one of them: http://www.hashemian.com/tools/javascript-countdown.htm
I guess you can incorporate this script into ASPRunnerPro using 'View as' type 'Custom'. Don't have any sample code available though.

E
ehotbid author 4/23/2010



There is a bunch of countdown scripts on the web. Here is one of them: http://www.hashemian.com/tools/javascript-countdown.htm
I guess you can incorporate this script into ASPRunnerPro using 'View as' type 'Custom'. Don't have any sample code available though.



I try to do it its giving out an err.
can you try and let me know
how to pass on the time variable to the javascript

<script language="JavaScript">

TargetDate = "12/31/2020 5:00 AM";

BackColor = "palegreen";

ForeColor = "navy";

CountActive = true;

CountStepper = -1;

LeadingZero = true;

DisplayFormat = "%%D%% Days, %%H%% Hours, %%M%% Minutes, %%S%% Seconds.";

FinishMessage = "It is finally here!";

</script>
as you can see the code.

Targetdate is mentioned already,

I want the variable to be taken from the table in to this script Targetdate section.
Please let me know how to do
Looking to hear form you

when I try to run the script now as you mentioned iam getting err...

try to do it by your self and let me know

Thanks

E
ehotbid author 4/23/2010

by mistake I had clieked the solved button...

its not solved please let me know thanks

Sergey Kornilov admin 4/23/2010

If 'View as' type is set to "Custom' you can use value variable to access field content.
Just to give you an idea.

value = "<script language='Javascript'>" & vbcrlf & _

"TargetDate = '" & value & "';" & vbcrlf & _

"BackColor = 'palegreen';" & vbcrlf & _

"ForeColor = 'navy';" & vbcrlf & _

"CountActive = true;" & vbcrlf & _

"CountStepper = -1;" & vbcrlf & _

"LeadingZero = true;" & vbcrlf & _

"DisplayFormat = '%%D%% Days, %%H%% Hours, %%M%% Minutes, %%S%% Seconds.';" & vbcrlf & _

"FinishMessage = 'It is finally here!';" & vbcrlf & _

"</script>"