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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T16:26:06+00:00 2026-05-17T16:26:06+00:00

I’m not sure if this is even possible or not, and I can’t quite

  • 0

I’m not sure if this is even possible or not, and I can’t quite figure out how to actually do it, if possible at all.

What I’d like to do is have a list of checkboxes get submitted to an .ajax() call. That .ajax() call passes the information to PHP for processing (and in this case it will be sending e-mails to each one of those IDs selected).

However, I don’t want the page (or the .ajax() call for that matter) to wait for the PHP script to finish running. Basically I want it to hand off the data and move on (and display a .dialog() box, etc., etc.)

Here’s the trick though: I do want some type of feedback from the PHP script. When it’s done, I want it to return data to the user, possibly by displaying a bar at the top of the page (much like what StackOverflow does when you have system messages, they show up at the top of the page regardless of where you are on the site.)

The first part, having a list of checkboxes displayed is done. I’m as far ahead as determining which ones are checked and collect that data. Now I need to figure out how to pass it to the .ajax() call in such a way that PHP can use it to scan a database to collect the various e-mails and start sending messages out. Not quite sure how to pass the data. It seems silly to create a dataString that consists of id1=XXX&id2=XXX&id3=XXX-and_so_forth.

I’m open for suggestions here.

[Edit] Anyone have any suggestions for the part I made bold above?

  • 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-17T16:26:07+00:00Added an answer on May 17, 2026 at 4:26 pm

    default behavior for the Ajax Request is that they are asynchronous and that implies that the code run normally and don’t wait the return of the AJAX call.

    Example:

    $.ajax({
        url: "...",
        data: "<checkboxes>",
        success: function(data, xhr, status) {
            // Code to add your banner when AJAX finished
        }
    });
    
    // Inline code to execute whitout wait the end of $.ajax
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I have a text area in my form which accepts all possible characters from
I'm not entirely sure how I managed to jack this up. http://pretty-senshi.com If you
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a jquery bug and I've been looking for hours now, I can't
this is what i have right now Drawing an RSS feed into the php,
I have this code to decode numeric html entities to the UTF8 equivalent character.
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I have this code: - (void)parser:(NSXMLParser *)parser foundCDATA:(NSData *)CDATABlock { NSString *someString = [[NSString
This could be a duplicate question, but I have no idea what search terms

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.