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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T23:41:44+00:00 2026-06-12T23:41:44+00:00

I have developed a mobile site which consumes a JSON service. I consume JSONP

  • 0

I have developed a mobile site which consumes a JSON service. I consume JSONP as it’s cross-domain. It was working and suddenly broke, and I cannot fathom why. Here is what I can inspect in the browser:

My Javascript Call:

$.ajax({
url: apiBaseURL + "getoperators?appKey=" + appKey,
dataType: 'jsonp',
success: function(data) {
    console.log(data);
},
    error: function(jqXHR, textStatus, errorThrown) {             }
});

When I view the response it seems correctly formed as below:

{“GetOperatorsResult”:{“Error”:””,”Results”:[{“City”:”Cape Town”,”IsPublic”:true,”Mode”:”Bus”,”Name”:”Golden Arrow”},{“City”:”Cape Town”,”IsPublic”:true,”Mode”:”Shuttle”,”Name”:”Jammie Shuttle”},{“City”:”Cape Town”,”IsPublic”:true,”Mode”:”Train”,”Name”:”Metrorail”},{“City”:”Cape Town”,”IsPublic”:true,”Mode”:”Bus”,”Name”:”MyCiti”}],”Status”:”Success”}}

Here is the Network Audit:

Request URL:http://api.wimt.co.za/v1/json/public.svc/getoperators?appKey=EB478338-73C7-483F-8AB4-B4DE2219D4DC&callback=jQuery18208015921225305647_1350479608882&_=1350479608950
Request Method:GET
Status Code:200 OK
Request Headersview source
Accept:/
Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.3
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-US,en;q=0.8
Cache-Control:max-age=0
Connection:keep-alive
Host:api.wimt.co.za
Referer:http://localhost:8300/index.html
User-Agent:Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.94 Safari/537.4
Query String Parametersview URL encoded
appKey:EB478338-73C7-483F-8AB4-B4DE2219D4DC
callback:jQuery18208015921225305647_1350479608882
_:1350479608950
Response Headersview source
Content-Length:353
Content-Type:application/json; charset=utf-8
Date:Wed, 17 Oct 2012 13:13:43 GMT
Server:Microsoft-IIS/7.5
X-Powered-By:ASP.NET

We are 1 day before launch and something which was working perfectly has broken and I cannot for the life of me work out what. The error could be in the web.config, but I have all the right headers/endpoints there.

Someone please help. Thank you!

  • 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-12T23:41:46+00:00Added an answer on June 12, 2026 at 11:41 pm

    It seems that the remote API no longer sends JSONP but plain JSON. In a valid JSONP call the response must be wrapped in the callback name:

    jQuery18208015921225305647_1350479608882({"GetOperatorsResult":{"Error":"","Results":[{"City":"Cape Town","IsPublic":true,"Mode":"Bus","Name":"Golden Arrow"},{"City":"Cape Town","IsPublic":true,"Mode":"Shuttle","Name":"Jammie Shuttle"},{"City":"Cape Town","IsPublic":true,"Mode":"Train","Name":"Metrorail"},{"City":"Cape Town","IsPublic":true,"Mode":"Bus","Name":"MyCiti"}],"Status":"Success"}})
    

    You should contact the owner of the API or read the documentation in order to understand how to specify a JSONP call.

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

Sidebar

Related Questions

i have developed some applications for blind which makes them to use basic mobile
We have a site developed in PHP. It is working just fine. We have
I have developed a jquery mobile application for my site http://tastykhana.in/m there is an
Actually we have developed one mobile solution, which is used by our customers. But
We've a site built in Django-CMS and have developed a mobile version with alternative
I have developed a Mobile application that connect to my Web Servie via RESTful
Does every j2me enabled mobile have GPS service so that the developer can locate
I am willing to develop a mobile application. I wish to have something working
I want to develop cross platform mobile app. I have seen frameworks listed below
I have developed a web site that requires user registration and authentication for some

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.