jQuery's load
method accepts a data
parameter.
$('#dialog').dialog({
autoOpen: false,
modal: true,
height: 'auto',
width: 'auto',
draggable: false,
open: function (event, ui) {
var svc = $(this).data('svcId');
var masterId = $(this).data('svcMasterId');
var statusId = $(this).data('svcStatusId');
url = '@(Html.Raw(Url.Action("ShowPopUp", "Home")))';
$(this).load(url,
{
serviceId: svc,
serviceMasterId: masterId,
serviceStatusId: statusId
});
}
});
Source: http://api.jquery.com/load/
See the very last example on the page.