Using JSONP in jQuery

Posted on 2012-08-17
Last Modified: 2012-08-18

I have found a remote webservice that I am trying to invoke within jQuery but with no success:

Can any one please complete the code for me and retrieve a list of Names for me?

Question by:jonatec
    LVL 75

    Accepted Solution

    The URL you provide is XML, not JSON and has no callback...

    You may need a proxy unless they have a JSONP interface too

    Author Comment

    Ok thanks for that, so please advise...

    I want to call an external web service outside the domain, from a jQuery Ajax call, can I do this or do I need to wrap the call in a server component to do it?

    LVL 75

    Expert Comment

    by:Michel Plungjan
    Unless they have a jsonp API or implement CORS yes you need to wrap

    Author Closing Comment

    Excellent, thanks for that !

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Join & Write a Comment

    Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
    International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
    The viewer will learn how to dynamically set the form action using jQuery.
    The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now