trice
10-25-2002, 09:15 PM
I have a form that has a link to a popup form that calculates an insurance premium.
What I need to be able to do is click the "Accept" button and copy the info from several fields on the popup to the main form.
I have tried several things. The last being the following:
In the main form I have this:
function owin(url) {
myPopup='';
myPopup=window.open(url,'popupWindow');
if (!myPopup.opener)
myPopup.opener=self;
}
In the popup form I have this:
function cpyDta(){
window.opener.document.FrontPage_Form1.GULCov.value=document.GUL.ECov.value;
window.opener.document.FrontPage_Form1.submit();
window.close();
return false;
}
When I click the accept button, it does close the window, but it doesn't write the info to the textbox. The other problem I am having also, is that if the textbox in the main form isn't a number, it gives me an error message.
I hope someone can point me in the right direction.
Thanks in advance.
Trice
What I need to be able to do is click the "Accept" button and copy the info from several fields on the popup to the main form.
I have tried several things. The last being the following:
In the main form I have this:
function owin(url) {
myPopup='';
myPopup=window.open(url,'popupWindow');
if (!myPopup.opener)
myPopup.opener=self;
}
In the popup form I have this:
function cpyDta(){
window.opener.document.FrontPage_Form1.GULCov.value=document.GUL.ECov.value;
window.opener.document.FrontPage_Form1.submit();
window.close();
return false;
}
When I click the accept button, it does close the window, but it doesn't write the info to the textbox. The other problem I am having also, is that if the textbox in the main form isn't a number, it gives me an error message.
I hope someone can point me in the right direction.
Thanks in advance.
Trice