Hello

Thease parent child windows realy mess me up, so here's the problim.

I have two Modal Dialog pop-ups the first sends it's value to the child pop-up and the child returns the changed value back to the parent.

The child value returns fine but I can't get the parent to send it's value to the child?

---------- Parent value to child ----------
<HTML>
<HEAD>
<TITLE>Value to child</TITLE>
<SCRIPT>
var sEventsTxt = document.set.eventTextValue.Value;
var sEventsInit = document.set.eventTextValue.innerText;
function callDialog() {
showModalDialog("callee.html",window,"status:false;dialogWidth:300px;dialogHeight:170px");
}
function update() {
set.eventTextValue.innerText = sEventsTxt;
}
function Init() {
set.eventTextValue.innerText = sEventsInit;
}
</SCRIPT>
</HEAD>
<BODY>
<form name="set">
<INPUT TYPE="button" VALUE="Display Modeless Dialog" onclick="callDialog()">
<input type="text" id="eventTextValue" name="eventTextValue" value="" style="width : 300px; height: 20px;">
</form>
</BODY>
</HTML>


---------- Child value back to parent ----------
<HTML>
<HEAD>
<TITLE>Value to parent</TITLE>
<SCRIPT>
function updateParent() {
var callerWindowObj = dialogArguments;
callerWindowObj.sEventsTxt = childSet.editbox.value;
callerWindowObj.update();
}
function Init() {
var callerWindowObj = dialogArguments;
callerWindowObj.sEventsInit = childSet.editbox.value;
callerWindowObj.Init();
}
</SCRIPT>
</HEAD>
<body onLoad="Init();">
<form name="childSet">
<textarea id="editbox" name="editbox" value="" style="width:200px; height:70px;"></textarea>
<BR><BR>
<INPUT VALUE="Ok" TYPE=button onclick="updateParent();window.close();">
<INPUT VALUE="Cancel" TYPE=button onclick="cancel();window.close();">
</form>
</BODY>
</HTML>


Thanks
mossimo