Advertisement
Guest User

Untitled

a guest
Jan 14th, 2011
698
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. $.ajax({
  2. type: "POST",
  3. url: "TestResults.aspx/SaveNewComment",
  4. data: JSON.stringify({
  5. tagId: tagIdvalue,
  6. samplingConcern: samplingConcernValue,
  7. analysisConcern: analysisConcernCodeValue,
  8. initialThoughts: initialThoughtsValue
  9. }),
  10. contentType: "application/json; charset=utf-8",
  11. dataType: "json",
  12. success: function(msg) {
  13.  
  14. alert(msg);
  15. // alert just won't work, I've tried msg.lastName
  16. // ideally the object returned here will be used to populate the form
  17.  
  18.  
  19. },
  20. Error: function() {
  21. alert('failure');
  22. }
  23. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement