Jump to content

Recommended Posts

Hi All,

 

Does anyone have any idea what I should google to create a "splash page" that tells the user to wait while a few mysql quieries are run through the php page?  It takes anywhere from 5 to 20 seconds, and I don't need a progress meter, just a splash page so they do not go anywhere and the user doesn't think there is a problem with their browser or network connection.

 

Thanks

Use the sleep function.

 

What if he does a sleep of 10 seconds and it takes 20 seconds for the query to run?

 

I would use AJAX for this.  When they submit the form, it displays a loading gif image or whatever you want and once you catch the response, it displays whatever you need to display.  I started learning my AJAX stuff at w3school, you should look there.  Also, there are prolly some really good books our there.

Ajax is one method, an alternative method is run all the queries with the splash page, then when it gets past that point in the doc it will remove the splash page by sending it to the negative z-index, and the content underneath will show.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.