SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist mrwooster's Avatar
    Join Date
    Jan 2006
    Posts
    518
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Show loading image for ajax requests

    I was wondering what the best way was to display a loading image while ajax requests are being made.... I am using tickbox on my site and so was wondering if I can program the loading image (gray background with loading bar centre screen) to be displayed as I am making ajax requests with ajaxagent.

    Thanks

  2. #2
    Function Curry'er JimmyP's Avatar
    Join Date
    Aug 2007
    Location
    Brighton, UK
    Posts
    2,006
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What event is the ajax request assigned to?

    You should make the image appear on the same event and then make it disappear (or remove it from the DOM) when the ajax request is complete (i.e. when data is returned).
    James Padolsey
    末末末末末末末末末末末末末末末末末末末
    Awesome JavaScript Zoomer (demo here)
    'Ajaxy' - Ajax integration solution (demo here)


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
  •