View Full Version : Help with javascript refresh

08-22-2007, 11:03 PM

I'm having select box on my page and once the user selects the value from the list box the form refreshes and presents the data to the user,I need to display some text " Saying that Form is refreshing" while the data is loading and once the data is loaded it should not display.

Couls any one help me how to do this in javascript.

Please advise..


08-23-2007, 12:23 AM
I would use a hidden <div> tag and you can control a <div>'s visibility by changing its property like this:

document.getElementById("pleaseWaitDiv").style.visibility="visible"; //show div
document.getElementById("pleaseWaitDiv").style.visibility="hidden"; //hide div

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum