Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6180255
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T00:48:52+00:00 2026-05-24T00:48:52+00:00

My web development project loads a lot of content via JSON and AJAX (aren’t

  • 0

My web development project loads a lot of content via JSON and AJAX (aren’t these basically the same thing).

I have implemented a loading gif pop up in a jquery UI dialog. This is hooked up to the .ajaxStart and .ajaxStop events.

$(document).ready(
        function () {
            $(window).load(function () { Load(); });
....

 function Load() {
.ajaxStart(function () {
//Show popup
}
.ajaxStop(function () {
//Hide popup

}

So this is pretty good, and whenever i’m loading content via ajax the loading pop up appears. Great. My next question is – the feedback im getting – they think its weird that there is loading for this content, but then when you request an entire new page in the web app, the ‘load’ takes a while, and there is no loading dialog like the other ajax loading examples. Personally to me – this makes perfect sense, but the user doesn’t like it.

Is there any easy way I can hook up my same dialog to page loads? I’m thinking if there is a way to know/jquery event for when they request a new page, I can just pop the loading dialog up and leave it there till the new page has loaded.

Grateful any advice?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T00:48:53+00:00Added an answer on May 24, 2026 at 12:48 am

    Sure, check out the unload event. http://api.jquery.com/unload/

    So literally just chuck

    $(window).unload(function () { Load(); });
    

    In your document ready and it’ll show the popup when the user navigates to a new page (might need to customise it because you don’t need any ajax request considering you’re not loading any data dynamically).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am looking at taking on a new web development project and the customer
I am creating a small commercial web project running Apache/WSGI/Django/MySQL. I have a development
I've recently started a new web development project for an embedded device and wanted
yesterday I deployed my website from c:\development\project\ to c:\inetpub\wwwroot\virtualdir\ (same pc). It worked for
I am trying to figure out whether a web development project is feasible at
I'm somewhat newbie for WEB development based on JVM stack, but future project will
We have a pretty big ASP.NET WebForm (web application) project with a lot of
I've been using Amazons t1.micro servers for all my private web development projects so
Web-development novice here. I want to try implementing a simple web site that uses
Any web development applications that retains colour formatting when copying to word? I tried

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.