Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $.ajax({
- type: 'POST',
- url: "http://data.niassembly.gov.uk/organisations.asmx/GetPartiesListCurrent_JSON",
- contentType: 'application/json; charset=utf-8',
- data: JSON.stringify({}),
- dataType: 'json',
- success: function(data){
- if (data.hasOwnProperty('d')){
- msg = data.d;
- } else {
- msg = data;
- }
- alert(msg);
- }
- ,
- error:function(){
- alert('error');
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement