如何使用ajax更新jquery移动弹出对话框?

时间:2014-10-02 04:55:36

标签: ajax jquery-mobile primefaces jquery-mobile-popup primefaces-mobile

当打开jquery-mobile弹出窗口(Dialog)时,单击对话框内的命令链接时,ajax请求将使用具有不同标题和内容的相同弹出标记更新对话框。

$(PrimeFaces.escapeClientId(id)).replaceWith(content);

id是popupDialog,内容是

<div id="popupDialog" 
     data-role="popup" 
     data-overlay-theme="b" 
     data-theme="b" 
     data-dismissible="false">
....
</div>

但得到了错误。

Uncaught NotFoundError: Failed to execute 'replaceChild' on 'Node': The node to be replaced is not a child of this node. 

这是一个普通的ajax更新DOM元素。可能是什么原因?感谢您的任何见解。

0 个答案:

没有答案