Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

How To Make A Loading / Wait Page?


  • You cannot reply to this topic
No replies to this topic

#1 Myairportroom

  • Community Member
  • 8 posts
  • Real Name:Stephen Smith
  • Gender:Male

Posted 08 February 2012, 08:03

Hello Fellow Members,

Myself and 2 other people own a website that advertises "Hotel Rooms", but our database is huge. So like other websites like "Expedia.Com" just to name one, we would like to add a "Searching Database" page while the database does upload the hotels / rooms results people require.

I have found this on another forum, and I am fairly sure that any coding that can do the above job, would need to go into the http:/www.example.com/catalog/includes/boxes/advsearch.php page? I know the "advsearch.php" is a new box, but does what a normal search PHP file would do, just with more options.

Anyway the coding I have found is this, and if you where to have just a plain text saying "Loading.........", then you need to add both parts. Of course I wish to make the page more complex, than just "Loading..........." What I am stuck on is this coding right for the above job and the filename for it to be placed in also?


Any help would be great.


function loading() {
var load;
load = document.getElementById("loading");
vis = load.style;
if(vis.display == '' || vis.display == 'block') {
vis.display = 'none';
} else if(vis.display == 'none') {
vis.display = 'block';
}
}



Then add this part of the coding, to state in this case "Loading........."

<div style="position:absolute;right:2px;top:2px;background-color:#1a520b;padding:2px;border:1px solid black;display:none;" id="loading"><b>Loading...</b></div>

Many thanks and all the best to you all.


Stephen Smith.