Hi,
I've got a long question....
I have a page where i call this function:
function EntryAdd()
{
strReturnData = window.showModalDialog "EntryAddDlg.asp", "", "dialogWidth:450px;dialogHeight:200px;help:no;resizable:no;scroll:no;status:no;center:yes);
if( strReturnData != null )
{
self.location = strReturnData;
}
}
'When I call this prcedure a popup shows with some tekst an an input text field telling to enter a new topic.
When O.K. button is clicked. this is the procedure:
<INPUT TYPE="button" VALUE="Ok" onClick="OnOk()" id=button1 name=button1>
function OnOk()
{
strTitel = document.forms.OkCancel.Titel.value
strURL = "AchtInfoDBFuncs.asp?FUNCTION=NEW&TITEL=" + strTitel + "&REPOST=EntryEdit.asp?ACHTINFO="
window.returnValue = strURL
window.close()
}
-----
So far so good..
I click NEW (calls prcedure EntryAdd() ), a popup shows. I enter a topic. CLICK the OK button. Go BACK to the window where i poped from.
BUT if i do not CLICK the OK butten, but use the ENTER button on my keyboard. From the popup a new window opens. where it should close the popup and go to the Window i poped from and load that URL.
Does anybody know how to fix it?
I've got a long question....
I have a page where i call this function:
function EntryAdd()
{
strReturnData = window.showModalDialog "EntryAddDlg.asp", "", "dialogWidth:450px;dialogHeight:200px;help:no;resizable:no;scroll:no;status:no;center:yes);
if( strReturnData != null )
{
self.location = strReturnData;
}
}
'When I call this prcedure a popup shows with some tekst an an input text field telling to enter a new topic.
When O.K. button is clicked. this is the procedure:
<INPUT TYPE="button" VALUE="Ok" onClick="OnOk()" id=button1 name=button1>
function OnOk()
{
strTitel = document.forms.OkCancel.Titel.value
strURL = "AchtInfoDBFuncs.asp?FUNCTION=NEW&TITEL=" + strTitel + "&REPOST=EntryEdit.asp?ACHTINFO="
window.returnValue = strURL
window.close()
}
-----
So far so good..
I click NEW (calls prcedure EntryAdd() ), a popup shows. I enter a topic. CLICK the OK button. Go BACK to the window where i poped from.
BUT if i do not CLICK the OK butten, but use the ENTER button on my keyboard. From the popup a new window opens. where it should close the popup and go to the Window i poped from and load that URL.
Does anybody know how to fix it?