Advertisement
NInjaRasel

ld-portal | ajax Call

Dec 18th, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. var ldurl = "/ld-portal/operation_information";
  2. var request = $.ajax({
  3. url: ldurl,
  4. type: "POST",
  5. data: {
  6. om_id: id,
  7. operation_flag: operationFlagValue
  8. }
  9. });
  10. request.done(function (data) {
  11. if (data) {
  12. $("#dialog").dialog("close");
  13. window.location.href = '/ld-portal/top';
  14. } else {
  15. alert("Something Wrong!");
  16. $("#dialog").dialog("close");
  17. }
  18. });
  19. request.fail(function (jqXHR, textStatus) {
  20. alert("Request failed: " + textStatus);
  21. $("#dialog").dialog("close");
  22. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement