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 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Feb 2008
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    loading bar while submit form

    Hi,
    I want to submit the user form using ajax and what i want to achieve is, if the user press the submit button, there will be a loading image appear while the script communicate with the server. is there any way to make this? i know it's possible, but im just a ajax noob.

  • #2
    Senior Coder A1ien51's Avatar
    Join Date
    Jun 2002
    Location
    Between DC and Baltimore In a Cave
    Posts
    2,717
    Thanks
    1
    Thanked 94 Times in 88 Posts
    I am not sure what is hard about it. It is basic DHTML.

    Have an image hidden on the page with the display set to none. Set its position to absolute and set the top and left location to where you want it to appear.

    When you call your Ajax function you set the display to block/inline

    When the Ajax call returns when it is complete you set the display back to none.

    Eric
    Tech Author [Ajax In Action, JavaScript: Visual Blueprint]

  • #3
    New to the CF scene
    Join Date
    Dec 2007
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    "I am not sure what is hard about it. It is basic DHTML."

    Not everyone's a genius coder Alien!


  •  

    Posting Permissions

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