Log in

View Full Version : Script to display a message during search/loading



martib
03-05-2008, 10:37 PM
I am looking for a script or sth else for this purpose:

When I enter a search term in my sitesearch it takes a while till the results are pulled and the resultpage is loaded.
During the time I would like to display a message like 'Please wait while your results are loaded ...'

Can I do this with a small java script, on Submit or how would the solution look like?
Thank you.

chechu
03-06-2008, 08:51 AM
Your question is the same is I put a few days ago here:
http://dynamicdrive.com/forums/showthread.php?t=30061

codeexploiter
03-06-2008, 09:06 AM
Have a look at the following url

http://developer.yahoo.com/yui/examples/container/panel-loading.html

In this case it will make a modal loading panel.

martib
03-06-2008, 12:07 PM
to chechu:
actually our questions are different.

you need onload when opening a website (link or typed in browser) but i need onsubmit since my screen/message has to appear right after sending a script.

martib
03-06-2008, 12:16 PM
to codeexploiter: thanks, that is a start. but how do i get the new content out of the div container in a new browser?