/    Sign up×
Community /Pin to ProfileBookmark

[RESOLVED] While ajax is loading…

Hi,
I am working with Ajax and I would like to display a loading image while ajax is working and then remove it once ajax has finished processing the request. Any suggestions are welcome.

Thank you,
Valanto

to post a comment
JavaScript

6 Comments(s)

Copy linkTweet thisAlerts:
@LeeUJul 13.2007 — You might check this site.
Copy linkTweet thisAlerts:
@simes1972Jul 13.2007 — I've just had a similar problem. I set the image height to one to get rid of the image.
Copy linkTweet thisAlerts:
@valantoauthorJul 16.2007 — Thnx for the loading image website! That's partially what i'm looking for. I'm also looking for the the appropriate code for detecting the event that ajax has finished loading.
Copy linkTweet thisAlerts:
@JMRKERJul 16.2007 — Why not put the the source of the loading image to '' (blank) after the AJAX has finished loading? For example:

  • 1. Start AJAX loading procedure and enable loading image.

  • 2. Wait for information to completely load

  • 3. Remove loading image display at end of step #2.


  • Could also 'hide/show' div or span tag containing loading image during AJAX load and monitor status of readyState.
    Copy linkTweet thisAlerts:
    @valantoauthorJul 17.2007 — Didn't really think of it that way!

    Thanks everyone for your help!
    Copy linkTweet thisAlerts:
    @JMRKERJul 17.2007 — If I helped, I'll say you're most welcome.

    If not, I'll say you're most welcome for the others.

    Good luck!
    ×

    Success!

    Help @valanto spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 5.16,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: @AriseFacilitySolutions09,
    tipped: article
    amount: 1000 SATS,

    tipper: @Yussuf4331,
    tipped: article
    amount: 1000 SATS,

    tipper: @darkwebsites540,
    tipped: article
    amount: 10 SATS,
    )...