需要帮忙!我正在尝试在 onclick 事件后在模式窗口中打开 MWO 表单 (../forms/mwo.php)。当我单击按钮时,我什么都没有……甚至没有错误。
<a id="newMWO" name="newMWO" data-role="button" data-inline="true" target="_blank" onclick=getWOCnt()>
New Work Order
</a>
<div id="mwoForm" title="MWO Form"></div>
$(function ()
{
$(".newMWO").on('click', (function (event)
{
event.preventDefault();
var loadVars=(encodeURI("../forms/MWO.php?a=<?php echo $_REQUEST['a']?>"));
var dialogName= $("#mwoForm").load(loadLVars);
$(dialogName).dialog({
autoOpen: false,
resizable: true,
modal: true,
bigframe: true,
height: 600,
width: 1000,
overflow: scroll,
resizable: true,
title: "MWO New Work Order"
});
dialogName.dialog('open');
return false;
}));
});