Avatar of SameerMirza
SameerMirza
Flag for United Kingdom of Great Britain and Northern Ireland asked on

Ajax loading div with decrementing counter

Hi,
I have already set up a loading div and I pass php based time to it.
what I looking for is a nice loading div with the decrementing counter - I can pass the counter/time to it

It would be great if some one could help me out with it.

Thanks,
Sameer.
AJAXJScript

Avatar of undefined
Last Comment
SameerMirza

8/22/2022 - Mon
McNetic

If you can provide a working code sample of what you already have, I'll try to help you find a solution. I don't exactly understand what you have, and what you want to get.
SameerMirza

ASKER
its just be java script, AJAX and CSS I belive or may be only CSS.
I am sure you are aware of timer functions in javascript
lets say I have 60 secnods
All I want to show is display the counter 60, 59, 58....seconds remaining
Although I have changed my design but it would be goog to find a solution
I hope you understand what I want achieve
ASKER CERTIFIED SOLUTION
McNetic

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
SameerMirza

ASKER
thanks for your help. It would be done like this but I am not exactly what I am looking for.
for example we say setTimeout(countdown, 60000);
I am looking for a counter to be display as 60 - 59 - 58 untlil it reaches 0
mean 60 sec to 0 secs waiting div.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
McNetic

Uhm, I'm afraid we've got a little misunderstanding. What do you mean by waiting div? Did you try my code? It does display a div, starting with 60, counting down to 0, decrementing by 1 every second.
SameerMirza

ASKER
hey it man :) my bad
SameerMirza

ASKER
it works :)
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.