Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <string xmlns="http://tempuri.org/">
- {"AirportList":[],"CityList":[{"ExtensionData":{},"Code":"ZRH","Country":{"ExtensionData":{},"CallingCode":"41","Code":"CH","CurrencyCode":"CHF","Name":"Suiza"},"CountryCode":"","Latitude":"4736902","Longitude":"853803","Name":"Zurich"}],"CountryList":[],"RegionList":null,"ExtensionData":{},"Messages":null,"SessionKey":"","Success":true}
- </string>
- callAjax('POST', 'ListCitiesByNameFilter', { filter: req.term }, false, function(data) {
- res($.map(data, function(item) {
- console.log(item);
- var description = item.Name + ", " + "someStuff" + " (" + item.Code + ") ";
- return {
- label: description,
- value: description,
- code: item.Code
- }
- }))
- });
- res($.map(data.CallingCode, function(item)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement