Advertisement
Guest User

Untitled

a guest
Feb 6th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. $.ajax({
  2. type: 'POST',
  3. url: "http://data.niassembly.gov.uk/organisations.asmx/GetPartiesListCurrent_JSON",
  4. contentType: 'application/json; charset=utf-8',
  5. data: JSON.stringify({}),
  6. dataType: 'json',
  7. success: function(data){
  8. if (data.hasOwnProperty('d')){
  9. msg = data.d;
  10. } else {
  11. msg = data;
  12. }
  13. alert(msg);
  14. }
  15. ,
  16. error:function(){
  17. alert('error');
  18. }
  19. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement