5
我打电话一个jQueryUI的对话框看起来像这样的iframe境内关外:如何打开一个对话框的iframe
但我需要在对话框的iframe之外(如window.parent ----> open dialog
或类似的东西)。
我打电话一个jQueryUI的对话框看起来像这样的iframe境内关外:如何打开一个对话框的iframe
但我需要在对话框的iframe之外(如window.parent ----> open dialog
或类似的东西)。
首先,你需要初始化parent
中的对话框autoOpen
设置为false
如果是这样的话。
$("#dialog").dialog({ autoOpen: false });
后,您可以通过表达前添加parent.
从iframe中打开它:
parent.$("#dialog").dialog("open");
PERFECT!非常感谢。 –