How to pass request verification token for $.load?

426 views Asked by At

I've to pass request verification token for $.load call, which will load respective JobSchedule action in Schedule controller. There in controller I need to decorate this JobSchedule action with [ValidateAntiForgeryToken] attribute

$('#modalDialog').dialog({
  autoOpen: false,
  modal: true,
  width: $(window).width(),
  open: function (event, ui) {
    $(this).load(applicationpath + "Account/Schedule/JobSchedule", selectedAccount);
  }
});

How can I pass the token for load? Any help would be appreciated.

0

There are 0 answers