Enable div after x hours javascript

Asked

Viewed 55 times

0

Honestly not if it is possible to do this via code but...

Then I have a div with a form, which should be enabled to fill out the user only after 400h that the 1st part of this form (another div) was finalized, when this div is enabled I have to fire an email warning the client that now it is available.

  • It means: the user enters the site fills something, then he clicks on "Send!". After it closes the browser, it will take a walk of 400h after it receives an email telling him to re-enter the site to fill in the next information. Would that be?

  • 3

    Without going into the details (as I have no experience with ASP), my suggestion is the following: 1) save the date and time that the first part was filled in, and schedule a task to execute the code that sends the email according to the calculated future date; 2) whenever the user requests that form (if he already has the link), check the date/time saved in the database and calculate if he can already access it or not; 3) if he can see it but not answer it, you can do this control with Javascript, but always validating on the server side if the action occurred in the correct time interval.

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.