I have a main.php page which I want to show a message like : "Checking for completion.."
Main.php will keep calling (without leaving the page) "function.php",
function.php returns with a boolean .
If function.php returns true: I want main.php to write that the operation completed if it returns false, it will need to keep checking untill it returns true.
I am unfamiliar with Ajax/JQuery but from what I understood it might be the best approach. Is someone able to provide me a (working) example of how to accomplish this ?
Thanks!