Bobafart
03-01-2008, 12:19 PM
I have a form submit which does a bit of work check if URLs are good URLs or not.. sometimes the form submission takes a few seconds before an output is resulted.
I know in AJAX you can use a "loading" icon while the XHR occurs.
for a PHP form submission:
if(isset($_POST['submit'])){
... proces URL here
}
are there any tricks in PHP where a 'loading' icon can be used and once the output is resulted the loading icon is replaced by the result output?
I assume this can only be done client side (javascript).. just wondering if anyone happens to know something I new that I don't. (I am using PHP v5.xx)
I know in AJAX you can use a "loading" icon while the XHR occurs.
for a PHP form submission:
if(isset($_POST['submit'])){
... proces URL here
}
are there any tricks in PHP where a 'loading' icon can be used and once the output is resulted the loading icon is replaced by the result output?
I assume this can only be done client side (javascript).. just wondering if anyone happens to know something I new that I don't. (I am using PHP v5.xx)