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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T09:31:30+00:00 2026-06-01T09:31:30+00:00

$.get($(this).attr(‘rel’), function(response){}, ‘script’) .error(function(){ alert(‘this failed’)}); I get. .error is not a method .

  • 0
$.get($(this).attr('rel'), function(response){}, 'script')
.error(function(){ alert('this failed')});

I get. .error is not a method . But it was added in version 1.4.3

http://api.jquery.com/error/

Is there some kind of type I have ?

  • 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-01T09:31:31+00:00Added an answer on June 1, 2026 at 9:31 am

    The return value of $.get in jQuery 1.4.3 does not have a .error method. I am actually not sure what the return value is, but you should be able to check it .. whatever it is, it doesn’t have .error. You will have to bind it to something else.

    At some point, jQuery started returning jqxhr objects from $.get, $.post, $.ajax, etc. I believe this is after 1.5 when they introduced Deferred, but I’m not 100% sure. The jqxhr object has .done, .fail and .always (implementing Deferred), so you would be able to do $.get().fail() at some point after jQuery 1.5. You definitely can in jQuery 1.7.

    Either upgrade jQuery or use $.ajax instead with error as a setting.

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

Sidebar

Related Questions

Pardon for this, i just get this error in console but i can't see
My jQuery Code is as follows: $('.sidebar_options_arrow').click(function() { id = $(this).attr('rel'); toggled = 0;
I'm trying to get this to crossfade, but I'm not entirely sure how. How
I have this jquery script: $('[id^=changesetList] tr').each(function () { var sid = $(this).attr('sid'); $(this).find('td
I made this plugin to make the method '[0].click()' cross-browser, but I can not
This is my first Coffeescript function and can't figure out how to get this
This is the same question as this: https://stackoverflow.com/questions/2890620/jquery-running-a-function-in-a-context-and-adding-to-a-variable But that question was poorly posed.
Update: I did get this working, here is the new javascript: $(document).ready(function() { $('a').click(
This may be something very easy but i can't seem to get this to
How do I get this javascript to run every second? source code: <script type="text/javascript">

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.