-2

Possible Duplicate:
PHP: Display a “loading” page while a php script is executing

Good day all, Please i need to display a loading.gif image while php executes queries and launches a page.

I cant seem to be able to access the about blank page in order to place the loading image there. It only appears when the page has totally loaded. Please who can help with a solution

2
  • Call the PHP script with AJAX, put a 'loading' icon in place, and replace the loading icon with the returning HTML from the PHP script. Commented Oct 2, 2012 at 18:35
  • Here's a solution : stackoverflow.com/questions/11539305/… Commented Oct 2, 2012 at 18:35

1 Answer 1

0
$("#loadingGif").show()
$.ajax({
    type: "POST",
    url: "ajax.php",
    data: { var1:'val1' }
}).done(function(msg) {
    $("#loadinggif").hide();
});
Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.