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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T09:11:36+00:00 2026-06-04T09:11:36+00:00

I am getting strange behavior, below is the jquery ajax call to my page.

  • 0

I am getting strange behavior, below is the jquery ajax call to my page.

Actually when my page is loading it has got two dropdowns from where it calls below ajax request for both the dropdowns, so two calls to same page.

  //alert("Test");
    var serviceReq = "http://localhost:2853/jsonproxy/jsonprxy.aspx"; 
    $.ajax({
        url: serviceReq,
        //type: "POST",
        contentType: "application/json; charset=utf-8",
        dataType: "jsonp",
        jsonpCallback: "airportXML",
        cache: true,
        success: function(data, textStatus, jqXHR) {
            var xmlDoc = $.parseXML(data);
            //alert("data" + data);
            x = xmlDoc.documentElement.childNodes;
            for (i = 0; i < x.length; i++) {
                document.write(x[i].nodeName);                        
                document.write("<br />");
            }

            //alert(oData);
        },
        error: function(jqXHR, textStatus, errorThrown) {
            alert(textStatus + "---" + errorThrown);
        }
    });

The problem is that it never goes inside success so I never get this //alert(“data” + data); it always goes to error saying “parsererror:airportxml is not a function” and I can gurantee the response returned is perfect JSON.

The strange behavior comes if I comment this line jsonpCallback: “airportXML”, Jquery give default callback i.e. something jquery12121212_2323232 and everything works fine, however I don’t want this as I am looking to have cache call for this

One more strange thing, if I put alert (//alert(“Test”);) before this call and everything works perfect for me without commenting jsonpCallback: “airportXML” and I get success alert fine.

I think my call is not getting full time to be completed.

Please suggest!!

  • 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-04T09:11:38+00:00Added an answer on June 4, 2026 at 9:11 am

    I think to resolve above issue, I need to use

    async: false, for my first call, so that my next call get completed.

    Please suggest on this.

    EDIT: Does JSNOP crossdomain call allows sysncronous calls?

    Thanks.

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

Sidebar

Related Questions

Hi I'm getting strange feedback from the feedback sandbox server. Actually there should be
I'm just getting into jQuery and notice strange behavior in the way some of
I am getting some strange behavior from list view. I need to change background
I'm getting some strange behavior from a listview/the getChildAt method. I have a HashSet,
I am getting strange behavior from MSBuild. I use the command: msbuild.exe /p:Configuration="Release|Windows Mobile
Right now I'm getting this strange behavior from IE where it's not showing my
I am getting a strange behavior for multi-part form. I have a simple HTML
I'm getting strange error 'int' object has no attribute 'startswith' I haven't used the
Getting a strange error on bundle install.. bundle install Fetching gem metadata from http://rubygems.org/.....
Getting a strange problem when loading the twitter widget asynchronously on IE. It loads

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.