Search loading in a page
I am new to php...I wanna to show a loading image when the page is loading something in php...any help would be appreciated
Related Article: ajax form upload loading a new page
is a Web Development discussion thread by stacyjoseph that has 1 reply, was last updated 2 months ago and has been tagged with the keywords: codeigniter, ajax, file-upload.
bavenbabu
Junior Poster in Training
60 posts since Feb 2012
Reputation Points: 4
Solved Threads: 1
Skill Endorsements: 0
You'll need to use js. Probably.
diafol
Keep Smiling
10,634 posts since Oct 2006
Reputation Points: 1,628
Solved Threads: 1,506
Skill Endorsements: 57
I agree with Ardav, PHP (server side scripting) will usually load and complete before an image could be seen on a page. js on the other hand is on the front side, and can start loading at the body tag as the page is loading.
<body onload="displayLoading()">
It has to do with the order in which a web page is called.
http request -> serverside script runs & completes -> sends info to client -> client side code runs and completes.
can u please elaborate it..What is the function used on onload
bavenbabu
Junior Poster in Training
60 posts since Feb 2012
Reputation Points: 4
Solved Threads: 1
Skill Endorsements: 0
Why don't you go over to the javascript forum? Or, do some reseaarch on js page load etc yourself?
diafol
Keep Smiling
10,634 posts since Oct 2006
Reputation Points: 1,628
Solved Threads: 1,506
Skill Endorsements: 57