php - HTML to run javascript even when page is closed -


OK, this is a problem I was doing for a while, and I can find a solution, anywhere I am!

My problem:

My HTML content is available as a web application that can be used offline, but I also get contact form available offline too. Want to do

Anyway the user can fill in the contact form when they do not have a connection and then run a script for running that keeps the input data until the connection is established.

And once after the connection was established to send data to a PHP script on one server?

Edit:

Thanks for all your replies! I have seen in local storage but it does not work because users can turn the page back on, but they probably do not have an internet connection, so I was wondering if there is any type of script that is localized You can run from time to time unless there is no Internet connection

Thank you in advance!

Yes - provided that they

  1. try and send the message (AJAX etc.. )

    / li>

  2. If a connection fails - store in local storage.
  3. Take a loop to check messages in local storage.
  4. If the message was tried to resend
  5. Once the message is sent, remove it from the local storage. ( AJAX success )

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -