1
我使用MooDialog.iframe和onClose我需要一些值。但无法从该iFrame中获取值并想在页面中使用,我在弹出窗口中打开了此框架。从moodialog获取特定字段并将值传递给父屏幕
的功能/代码我用于弹出低于:
function popup_window() {
var hostname = location.protocol + "//" + location.hostname + (location.port && ":" + location.port) + "/";
var opcion = "crear";
co2=new MooDialog.IFrame(hostname+'infinity/contabilidad/cuenta%20crear/popup_window.php?action=2',
{
title: 'Editar Centro','class' : 'content_edit1 MooDialog',
onClose: function()
{
/////////alert(document.getElementById('numero_cuenta').value);
//numero_cuenta is something i want
location.reload();
}
}
);
}
numero_cuenta是弹出iframe的input.text的id。