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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T23:05:07+00:00 2026-06-10T23:05:07+00:00

Can we add additional methods to jqXHR object? I had a app built using

  • 0

Can we add additional methods to jqXHR object?
I had a app built using prototype.js which was extending the response

Ajax.Response.addMethods({});

What is the equivalent for Jquery?

I want to add few methods that are specific to my app.
For example, I want to add a method

getMyHeader: function(name)
{
     return this.getResponseHeader('MY-'+name);
}

which returns me a specific header sent by server.

  • 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-10T23:05:08+00:00Added an answer on June 10, 2026 at 11:05 pm

    It doesn’t look like jQuery specifically supports this. The jqXHR object they create is just a generic object with methods added as properties so there isn’t a prototype you can modify and I don’t see any jQuery methods for modifying it.

    The only work-around I could see was to register a handler for a global ajax event like jQuery.ajaxSend() and add the desired methods to each specific jqXHR object in that global handler. Then, those methods would be available later.

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

Sidebar

Related Questions

Using VS2010, I can't seem to add additional test methods. If I set up
How can I add additional, custom information to my objective-c methods and properties? I
How can I add an additional icon to the Name/Lable of app, just the
In Rails, you can add a block after a named_scope for additional, context-sensitive methods
I am making a table in which you can add aditional rows. When you
We can add an image to an photo album using UIImage *img = [UIImage
I wrote library which can add and update objects in salesforce. I use beatbox
So, I understand that Categories in Objective-C can be used to add methods to
Is it possible to add some additional parameters to get/post methods in jQuery .
I can add and remove the last line in my dynamic form and calculate

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.