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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T16:17:23+00:00 2026-06-12T16:17:23+00:00

Possible Duplicate: json Uncaught SyntaxError: Unexpected token : Does jsonp depend on server support,

  • 0

Possible Duplicate:
json Uncaught SyntaxError: Unexpected token :

Does jsonp depend on server support, in order to return a correct response?

I got this request, and what I get back is js error.

$.getJSON('myURL?q=keyword&callback=?', function(data){console.log(data)});

even angular jsonp method isn’t working:

http://jsfiddle.net/neoswf/tckGG/5/

console >> js error: Uncaught SyntaxError: Unexpected token :

Does jsonp depends on some server implementations?

SOLVED!!!

This question is different from others cause no other answers speak about the proxy solution.

  • 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-12T16:17:24+00:00Added an answer on June 12, 2026 at 4:17 pm

    The server doesn’t return JSONP, it returns JSON. A JSONP result is a JSON result wrapped in a function call.

    Example:

    callback873659823745({"destino":"http://...", ... })
    

    If you can’t make the server return JSONP, you would need a proxy server that requests the service and returns the JSON result wrapped as a JSONP result.

    As it happens, I set up such a proxy a while ago, at jsonp.guffa.com, that you could use if you don’t have the ability to set up one yourself.

    Demo: http://jsfiddle.net/Guffa/tckGG/6/

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

Sidebar

Related Questions

Possible Duplicate: json with google geocoding api json Uncaught SyntaxError: Unexpected token : $.getJSON('http://maps.googleapis.com/maps/api/geocode/json?latlng=40.714224,-73.961452&sensor=true&callback=?',
Possible Duplicate: JSON Spec - does the key have to be surrounded with quotes?
Possible Duplicate: Example of how to download JSON from server? I've read quite a
Possible Duplicate: JSON Array iteration in Android/Java I am fetching JSON string from server
Possible Duplicate: how to parse json in javascript My server is configured to send
Possible Duplicate: JSON order mixed up By Microsoft convension i need send Json as
Possible Duplicate: Browser-native JSON support (window.JSON) Specifically, is JSON.parse(...) supported by IE7+, Firefox 2+,
Possible Duplicate: Using JSON in iOS How does one parse JSON response in iOS?
Possible Duplicate: returning UIImage from block Hi I'm trying to return dictionary of json
Possible Duplicate: JSON object to listView i have a json data on server and

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.