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 620389
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T18:45:31+00:00 2026-05-13T18:45:31+00:00

I have what should be a simple requirement, however, I am keen to get

  • 0

I have what should be a simple requirement, however, I am keen to get an opinion on the best solution.

Firstly, I am using CakePHP and JQuery on a LAMP dev server.

The site uses a simple search form that submits data via GET to /search?term=xxx

The search logic implements a number of time consuming calls to multiple third party APIs, currently up to 5 secs.

What I need is the page to load as quickly possible and then provide the end user with responsive feedback. I think implementing a to display a ‘please wait’ message or animated gif would be the best approach. On page load / search submission, an Ajax call is performed to a cakePHP URL that kicks off the intensive queries, passing the search term, and responds an array of data for layout.

It should work similar to car insurance comparison sites, aggregating data from multiple sources and providing the end user with responsive feedback.

Does this sound correct? Can anyone provide any code examples / URLs to solidify my understanding?

Thanks,
Paul

  • 1 1 Answer
  • 1 View
  • 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-13T18:45:31+00:00Added an answer on May 13, 2026 at 6:45 pm

    Well, the loading image thing can be done like that:

    function()
      {
      ajax_loading_image('.someDivId');
      $.ajax({
        type: "GET",
        url: 'yourUrl',
        data: 'yourGETSubmittedData',
        success: function(msg)
          {
          // do some stuff
          ajax_remove_loading_image('.someDivId');
          }
        });
      }
    
    function ajax_loading_image(div)
      {
      $(div).html('<img src="ajax-loader.gif" alt="loading..."/>');
      }
    
    function ajax_remove_loading_image(div)
      {
      $(div).html('');
      }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This should be simple, yet I can't get it to work. I have a
I have what should be a simple issue: On my newest rendition of http://www.derekbeck.com/1775
Hey guys I have what should be a simple question, but I am new
should be simple right? but have not found any anwsers :
This should be simple, but I'm getting confused. I have a parent/child tables -
I have a computational geometry problem that I feel should have a relatively simple
This should be a simple one: I have an observableArray object called To in
I have what I feel should be a simple question. I have been trying
This should be really simple, but I have tried many solutions posted on the
This should be a simple issue but I can't figure this out. I have

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.