I’ve the current situation:
-
Have a Link in some HTML page.
-
When the user click that Link, an
NORMAL(vs Ajax) HTTP request is being sent to a Web Server (typically a Java Servlet) -
After that, of course the browser will bring the contents from the server and start rendering it. (actually it’s the same page with modified contents – don’t ask me to do it in ajax, cause it is the requirements)
Before step 3 is being done (while the page is being loaded) I need to display some frame to the user saying something like loading ....
Well, just populate a div somewhere on the page with “Loading…” when the link is clicked. Here’s some rough code
And when the page loads, the current loading div will be replaced with an empty one, this will signify that the loading is complete.
Another approach:
The css
The html
The js