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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T04:50:52+00:00 2026-05-20T04:50:52+00:00

Anyone have any idea why this isn’t working? $(function(){ console.log(‘ready’); $.ajax({ dataType : ‘jsonp’,

  • 0

Anyone have any idea why this isn’t working?

$(function(){
    console.log('ready');
    $.ajax({
        dataType : 'jsonp',
        jsonp : 'js',
        url : 'http://monitor.302br.net/MonitorScoreServlet',
        beforeSend : function(jqXHR, settings) {
            console.info('in beforeSend');
            console.log(jqXHR, settings);
        },
        error : function(jqXHR, textStatus, errorThrown) {
            console.info('in error');
            console.log(jqXHR, textStatus, errorThrown);
        },
        complete : function(jqXHR, textStatus) {
            console.info('in complete');
            console.log(jqXHR, textStatus);
        },
        success: function(data, textStatus, jqXHR){
            console.info('in success');
            console.log(data, textStatus, jqXHR);
        }
    }); 
}); 

This was working till recently. The beforeSend handler never fires, but you can see the ajax call being made in firebug, and if you go to the url, it seems to return acceptably formatted results (the same results as before):

http://monitor.302br.net/MonitorScoreServlet?js=jsonp1298046640938
text/javascript:

(84.3);

If I comment out the url, the beforeSend fires, but of course, there’s no url….

Any ideas?

  • 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-20T04:50:52+00:00Added an answer on May 20, 2026 at 4:50 am

    Ok, I feel dumb. Here’s what I think happened: the server used to be set up to take the js param as a callback function. So a url like:

    http://monitor.302br.net/MonitorScoreServlet?js=foo
    

    would result in:

    foo(84.1);
    

    Whenever we looked in the browser, we were just looking at:

    http://monitor.302br.net/MonitorScoreServlet?js
    

    which resulted in:

    (84.1);

    I assumed jQuery was doing some magic with that to turn it into usable data, but now I think that jQuery was creating something like:

    function jsonp1298047240882(data) {
        // do something with data
    }
    

    So when we changed our back-end code not to create the callback function call, the whole thing stopped working. (It’s still weird that the beforeSend handler never gets called, though.)

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

Sidebar

Related Questions

Does anyone have any idea what is wrong with this create statement for mysql?
Anyone have any idea how to get the value of Language for Non-Unicode Programs
Anyone have any idea how to get the SACL's on a remote service using
anyone have any experience using this? if so, is it worth while?
Anyone have any experience creating a modal dialog box using AJAX and ASP.NET MVC?
Anyone have any experience using the Microsoft Configuration Management Application Block? This is an
Does anyone have any idea on how can you create a product filtering query
Anyone have any good urls for templates or diagram examples in Visio 2007 to
Anyone have any success or failure running Jira on a VM? I am setting
Anyone have any comparative thoughts on these three technologies? Each addresses a different VM,

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.