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

  • Home
  • SEARCH
  • 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 7708049
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T00:30:44+00:00 2026-06-01T00:30:44+00:00

I have a view that can take several seconds to process a GET request

  • 0

I have a view that can take several seconds to process a GET request and render the results. I’d like to put up a temporary page that says “Processing…” while the view is doing its stuff. How can I do this?

UPDATE

I don’t have any control over the link to my page. It is a link to me a third party has on their page. When they click it I run some stuff and display the results. I don’t want them to have to click anything on the pages I display.

Ideally, I would like the following:

  1. A user clicks a link to my website that is on a 3rd party website
  2. My websites displays a “processing request” message – the user doesn’t have to click anything, just wait.
  3. After a few seconds the results are displayed.

All the user had to do was click a link once and wait for the results.

Some example code would be greatly appreciated as I am quite new to things like jQuery – if that’s what I need.

  • 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-06-01T00:30:46+00:00Added an answer on June 1, 2026 at 12:30 am

    Use jQuery to display the message while waiting for the view to return the result.

    Place a hidden div-tag in the page containing the processing message/image.

    If you submit the GET request by clicking a button you put an onclick event on the button to display the div-tag. When the view is done processing, the page will be reloaded and the target page will be displayed.

    If the view is called using AJAX you can place the show/hide of the div in the ajaxStart and ajaxComplete events.

    EDIT: OK since the page will be called from by a 3rd party it will complicate things a bit. I would suggest that you load the page without the data and once the page is loaded you do an AJAX GET request to retrieve the data.

    You could do as follows:

    Add a hidden div-tag to the page with the Progress message/image.

    <div id="progress">Please wait while the page is loading.</div>
    

    Then add the ajax GET call to the page:

    $(document).ready(function () {
    
      //Attach the ajaxStart and ajaxComplete event to the div
      $('#progress').ajaxStart(function() {
          $(this).show();
      }); 
    
      $('#progress').ajaxComplete(function() {
          $(this).hide();
      }); 
    
      //Perform the AJAX get
      $.get('/your_view/', function(data) {
         //Do whatever you want with the data here 
      });
    });
    

    The above code has not been tested but it will give you an idea.

    UPDATE

    I would suggest that you return a JSON object or similar from your view:

    companies = Company.objects.filter(name__istartswith=companyname)
    results = [{'value': company.name, 'id':company.id} for company in companies ]
    json = simplejson.dumps(results)
    return HttpResponse(json, mimetype='application/json')
    

    You can also use the getJSON() method instead of get() in jQuery.

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

Sidebar

Related Questions

I have a iPad app that can take a picture and then put it
I have a View that can vary significantly, depending on the 'mode' a particular
I have a view user control that can post form. This control can be
So, I have a decimalfield that can be 3 different values. In my view,
I have a system whereby a user can view categories that they've subscribed to
I have a custom View that I'd like to specify the layout of in
I have a scroll view that I would like to fill the whole screen,
My goal is to write a custom camera view controller that: Can take photos
I have a web app that has a few processes that can take up
I have a LinearLayout view that already contains several elements. I want to add

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.