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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T22:31:24+00:00 2026-05-24T22:31:24+00:00

I try to fetch data from wikilocation.org. As far as i get it, i

  • 0

I try to fetch data from wikilocation.org. As far as i get it, i need to use jsonp to manage this. This basically works with this code:

$.ajax({
   url:'http://api.wikilocation.org/articles',
   dataType: "jsonp",
   cache: false,
   jsonp:'onJsonPLoad',
   jsonpcallbackString: "addPoi",
   data: {'lng': newPoi.lon, 'lat': newPoi.lat, 'limit':5, 'radius':100, 'jsonp':'addPoi'}
});

My problem is, that i do not want to call another function (addPoi in the snippet) to be able to work with the result. I neet the result directly inside the function, where i make the ajax call. Is that possible? Am I missing something?

  • 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-24T22:31:25+00:00Added an answer on May 24, 2026 at 10:31 pm

    This will work: Example

    $.ajax({
        url: 'http://api.wikilocation.org/articles',
        dataType: "jsonp",
        jsonpCallback: 'addPoi',
        cache: false,
        success: function(data) {
            alert(data)
        },
        data: {
            'lng': newPoi.lon,
            'lat': newPoi.lat,
            'limit': 5,
            'radius': 100,
            'jsonp': 'addPoi'
        }
    });
    

    You have to send wikilocation a function name, and tell jQuery what to expect like you did. Then all you needed to do was add the success: function (data) { ... }

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

Sidebar

Related Questions

I use kohana and when you try to fetch data from database it returns
i try to fetch data from web,but the page use a 302 redirect how
I want to get data from this page: http://www.canadapost.ca/cpotools/apps/track/personal/findByTrackNumber?trackingNumber=0656887000494793 But that page forwards to:
I need to make an excel file which would fetch data from connection to
I'm trying to get data from DB. I must use to queries. From the
I try to fetch some data from Plurk using its search function. http://www.plurk.com/API#search I
trying to get my head around using Lambda expressions to fetch data from my
I have problems when i try to fetch data to my Backbone model from
I try to fetch a Wikipedia article with Python's urllib: f = urllib.urlopen(http://en.wikipedia.org/w/index.php?title=Albert_Einstein&printable=yes) s
Try loading this normal .jpg file in Internet Explorer 6.0. I get an error

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.