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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T20:50:46+00:00 2026-06-01T20:50:46+00:00

Notes This is jQuery 1.4.4 This is not a jsonp request. Just vanilla json

  • 0

Notes

  1. This is jQuery 1.4.4
  2. This is not a jsonp request. Just vanilla json within my domain.

My Request

$autocomplete_xhr = $.ajax({
  url: '/customers/filter.json',
  contentType: "application/json",
  data: { name: request.term },
  dataType: 'json',
  beforeSend: function(xhr) {
   console.log('Inside beforeSend');
   console.log(xhr);
  },

When I send the AJAX request out, console.log will not fire off.

What do you think the problem is?

  • 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-01T20:50:48+00:00Added an answer on June 1, 2026 at 8:50 pm

    clearly said in docs

    beforeSend(jqXHR, settings)

    A pre-request callback function that can be used to modify the jqXHR
    (in jQuery 1.4.x, XMLHTTPRequest) object before it is sent. Use
    this to set custom headers, etc. The jqXHR and settings maps are
    passed as arguments. This is an Ajax Event. Returning false in the
    beforeSend function will cancel the request. As of jQuery 1.5, the
    beforeSend option will be called regardless of the type of request.

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

Sidebar

Related Questions

I need to make an ajax POST request (json) to a different domain (later
I'm trying to get a jsonp callback working using jquery within a greasemonkey script.
We're using jQuery.ajax() methods to request server data on a number of pages on
I have a jQuery .ajax call: $j.ajax({ type: POST, url: /Services/Cart.asmx/UpdateQuantity, data: data, contentType:
I'm trying to output all elements of this json : {nodes:[{url:asdfas,date:},{url:asdfas,date:},{url:asdfasfdasas,date:}]} Here is the
(Note: This is a follow up to my question Can jQuery.getJSON put a domain's
I asked this morning a question about a jQuery code that's not working (which
I have Json of the form [{id:39,data:1},{id:40,data:2}] It does not parse properly with jQuery.parseJSON()
I need to make this jquery run much faster, I did not create all
from this site there is header compress.h http://www.fredosaurus.com/notes-cpp/examples/compress/compress.html i am using visual c++ 2010

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.