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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T09:30:54+00:00 2026-05-23T09:30:54+00:00

I have a few questions on jQuery AJAX. It is confusing to understand why

  • 0

I have a few questions on jQuery AJAX.

  1. It is confusing to understand why there are multiple methods like load(), get(), post()..is the diff only like $.ajax is general way of writing and others being specific based on type..?

  2. I do not cleatly understand the diff between complete, success..Are they similar or is there any diff as to when each should be used ?

  3. In terms of script execution from within an HTML response, does jQuery AJAX handle it automatically OR do we need to specify something like eval() ? Also how diff is this behavior compared to a normal AJAX only handling?

  4. Regarding the beforeSend , is it similar to ajaxSetup and generally speaking, what are the common attributes which are used out of the many which are availbale?

Edited

  1. Also is the code written as callback for load()..e.g. load(url,function(){});
    same as what is mentioned under success or ajaxSuccess..I mean will the callback function code not exectuted at the same time as the success or ajaxSuccess ?

Thnak you.

  • 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-23T09:30:55+00:00Added an answer on May 23, 2026 at 9:30 am

    1) you need to understand HTTP. get and post make “GET” and “POST” requests, respectively, which is useful if you are building a RESTful service. EDIT: I actually don’t see get and post methods on the ajax object; you pass a ‘type’ parameter to specify the HTTP method you want to use.

    2) success fires on success, i.e. if the response returns a 200. complete always fires after everything else is done.

    3) Ideally, your server would return json. If you configure the Ajax call to expect json, then it will parse it for you.

    4) The documentation is very clear, beforeSend is fired before the actual underlying ajax request is invoked. The documentation says things like “Use this to set custom headers, etc.”

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

Sidebar

Related Questions

I have a few questions about the eq() property of jQuery and how to
I have a page that uses jQuery's $.post() method to get some html and
I was just reading up on push. I have a few questions regarding jQuery
I have read a few questions similar to this, but I can't get my
Few questions: I'm using CI and JQuery AJAX. In my code below, I assemble
I have read a few posts on fail parameters for a JQuery Ajax call,
I have few questions about using lock to protect my shared data structure. I
I have few questions, I want to show the alert window on my Update
I have a few questions about Xcode and interaction with GCC 4.2.1: It doesn't
I have a few questions about this after reading the iPhone documentation on it:

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.