Link to home
Start Free TrialLog in
Avatar of jonatec
jonatecFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Using JSONP in jQuery

Hi

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

http://www.holidaywebservice.com/Holidays/HolidayService.asmx/GetCountriesAvailable

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

Thanks..
ASKER CERTIFIED SOLUTION
Avatar of Michel Plungjan
Michel Plungjan
Flag of Denmark image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jonatec

ASKER

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?

Cheers..
Unless they have a jsonp API or implement CORS yes you need to wrap
Avatar of jonatec

ASKER

Excellent, thanks for that !