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

The Archive Base Latest Questions

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

Below is my code var tweetid = ‘133450847156838400’; $.ajax({ dataType: jsonp, url: http://api.twitter.com/1/statuses/show/+tweetid+.json?include_entities=1&callback=?, error:function(xhr,

  • 0

Below is my code

var tweetid = '133450847156838400';
        $.ajax({
                dataType: "jsonp",
                url: "http://api.twitter.com/1/statuses/show/"+tweetid+".json?include_entities=1&callback=?",
                error:function(xhr, testStatus, error) {
                    alert("error");
                },
                success: function(html){
                    alert("success");
                }
            });

Chrome console shows me 404 error response but jQuery is not able to trigger the alert.

I added

        $(document).ajaxError(function(event, request, settings){
            alert('error');
        });

nothing happens. Can someone help me in handling this error as I have to detect if this tweet is deleted.

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

    I’m pretty sure (not entirely), that the dataType jsonp doesn’t properly handle non-200 http status codes. The reason is on jsonp actually works. The wikipedia page explains it better: http://en.wikipedia.org/wiki/JSONP, but basically, jsonp amounts to appending a script element onto the page with the url you’ve given. And the body of the script element is a function call. If you get any status code != to 200, then that body will not be there and no function will be called (which eventually calls the callback functions).

    So, if you continue to use jsonp, then you will need to have some kind of timeout in waiting for a response and expect that the request failed or some other method.

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

Sidebar

Related Questions

In the below code: var id=obj.setid({{info}}); I get an error saying illegal character and
In the below code var panel= '<div id=title style=display:inline;font-size:150%;color:white;background:transparent;text-transform: none;width:150px;> aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</div> <div name=images id=name
In the below code var panel=<div name=panel id=panel style=display:inline;position: absolute; margin-left: auto;margin-right:auto;left: 0;right: 0;width:350px;height:
In the code shown below, I need to manipulate the time var in python
for below code var str = I left the United States with my eyes
The following code below: var unixDate = new Date('07/28/2010'); var unixMonth = unixDate.getMonth(); var
I'm not a javascript guru. I've got the following code below: var aCookieValues =
Is there any method IndexOf or Contains in C#. Below is the code: var
I'm using XDocument to create a RSS same below code: var document = new
I've got the code below: var catRoots = CatalogContext.CatalogRoots.Where(cr => cr.Visible); var catChapter =

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.