MooDialog.iframeとonCloseを使用しましたが、いくつかの値が必要です。しかし、そのiFrameから値をフェッチできず、ポップアップでこのフレームを開いたページで使用したい。
ポップアップに使用した関数/コードは次のとおりです。
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です。