Does anyone know if there is a function to refresh a webpage , I have a webpage which is sending data to the database and it will be returned a confirmation for that data sent , till I get that confirmation message I have to keep refreshing the page .
Any suggestions ??
Basically all you need to do is make the same request every eg 20 seconds until you get the confirmation. This is what you are doing by refreshing the browser anyway.
The logic for this would be something like:
While (confirmation has not been received) do
Prepare the parse for Confirmation
Make the request
Check parsed string for confirmation
if Confirmation has been received
exit while loop
wait 20 seconds