Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jun 2007
    Posts
    25
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Help with javascript refresh

    Hi,

    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..

    Thanks,
    Kumar

  • #2
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    I would use a hidden <div> tag and you can control a <div>'s visibility by changing its property like this:
    Code:
    document.getElementById("pleaseWaitDiv").style.visibility="visible"; //show div
    document.getElementById("pleaseWaitDiv").style.visibility="hidden"; //hide div


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •