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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T05:01:00+00:00 2026-06-04T05:01:00+00:00

I have a rather extensive PHP page that does a lot of IP address

  • 0

I have a rather extensive PHP page that does a lot of IP address validation for our product licensing. One of those validation routines can take 20-30 seconds, while the bulk of them happen locally and so show up very quickly. I’d like to launch that longer one in a separate jQuery GET, and display it’s results while they review the results of the faster ones.

Here’s the pseudo-code for the “fastchecks” that I’m working from – how/where would a “slowchecks” be launched?

$.ajax(
{
    type: "GET",
    dataType: "json",
    url: "license/fastchecks/" + $("#ipblocks").val(),
    error:function (xhr, ajaxOptions, thrownError){
        alert("IP Checking Error: " + xhr.status + ": " + thrownError);
    },
    success: function(fastresults)
    {
        /* Do stuff with my fast check results while I wait for my slow check results */
    }
});

Is this possible? I keep going back to a timed event, but the process itself IS a delay, so that doesn’t seem to make sense to me – am I missing something?

  • 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-04T05:01:01+00:00Added an answer on June 4, 2026 at 5:01 am

    Your code is fine as is. You don’t need to use any timers or anything like that. Your “slowchecks” would be exactly the same as your “fastchecks”. The keyword here is Asynchronous. That success function doesn’t get called until after the ajax call completes. So whatever you wanted to do with the data you get from your ajax call, put it in your success function, and that won’t actually do anything until the results are returned.

    Also, you would run both Ajax calls at the same time. Each one will run it’s own success function when it completes.

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

Sidebar

Related Questions

I have rather large project that uses ICU regex classes. Basically it might run
Have a rather simple question. Does anyone knows if i can use jparallax both
I have a rather large page showing in a UIWebView (around 150 <article>s with
I have a rather specific question about how to exclude items of one list
I have a rather huge query that is needed in several stored procedures, and
I have done extensive client-side validation through the help from jQuery. Now come to
I have a rather extensive form which contains a file input. The form will
We have a rather large amount of data to be downloaded. Currently our system
I've suddenly been tripped up by a bizarre issue. I have a rather extensive
In a lot of my PHP classes, I have this code: private $strError =

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.