If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

callPow is the function that is going to be called every 24 hours just once.

I need there current time to check against the clock is set here var clock = "15:48:01";

When I click the submit button the check for the current time is recording and the clock starts when it reaches "00:00:01" run the callPow function.
save the value of the callPow function in a xml document.

callPow is the function that is going to be called every 24 hours just once.

I need there current time to check against the clock is set here var clock = "15:48:01";

When I click the submit button the check for the current time is recording and the clock starts when it reaches "00:00:01" run the callPow function.
save the value of the callPow function in a xml document.

day to do the same.

Two problems to address since you have not provided the information in your post.
1. Where are you calling the "callPow()" function to see the action?
2. Your check of >= clock (assuming they are of similar format) will be true from "15:48:01" until "23:59:59".
Is that what you want to do in your design?

The callPow is not my problem. I will fix this later I need to make sure the the clock version work first. Focusing on the callPow is secondary.

If I get the clock to work.I can add just the alert to see if it called everyday then I will fix the callPow

If it is not a part of the problem, then leave it out. It still won't work as is.

Your problems:
1. Your contents of the <div> will not equal your setting as programmed.
2. Your comparison will always find any value > "1" to be after "15"
3. Any value less then 10 will display as only 1 digit. Not good for your '00' comparison logic
4. Your .toLocalTimeString() function adds an 'AM' or 'PM' which will not compare to your 'clock' setting.
5. If you don't solve one problem at a time, you are in for a lot of trial & error debugging!

No actual I am trying to test a theory I was told that if you save a penny and double it everyday in 30 days you will have over a million dollars saved. I just want so if I did this on a web page and just let it sit for 30 and see the return.

I will next time thanks. I just trying to figure out the code myself and get help along the way. What I was really looking for was a way to let sit on my computer for 30 days and see the it calculate each day. But with this I think I can figure it out. I am trying to teach kids the possibility of saving. The code sit on a pc in the classroom and each day for 30 days the will the value change to the new value.