SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member firetone's Avatar
    Join Date
    Jun 2006
    Posts
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Load Image when a Button is Clicked

    I have a form which uploads file on to my server.

    Since my site is catering for the larger file upload, I want to have a progress-animation gif file to load once I click on the form's upload button. How can this be done with javascript?

    Any help is much appreciated, thanks!

    Shaun

  2. #2
    SitePoint Wizard Pepejeria's Avatar
    Join Date
    Jan 2005
    Location
    Too far up north
    Posts
    1,566
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Attach an onclick function to the upload button that will show the image.

  3. #3
    SitePoint Member firetone's Avatar
    Join Date
    Jun 2006
    Posts
    0
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for the reply Pepegaria, however I am not that atuned with javascript.. Could you perhaps show me an example of how this can be done?

  4. #4
    SitePoint Wizard Pepejeria's Avatar
    Join Date
    Jan 2005
    Location
    Too far up north
    Posts
    1,566
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You should then have a basic understanding of JavaScript before going further. I recommend you to learn the basics first


Bookmarks

Posting Permissions

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