favc4
Posts: 30
|
| Posted: 05/22/2006, 10:50 PM |
|
Hi there, I am breaking my head, time & budget figuring out why I
do this in the header of the HTML...
<script language="JavaScript">
//JustClose
function JustClose()
{
window.close();
}
//End JustClose
</script>
And within an event (ASP, server side) I do...
Function frmFileUpload_FileUpload1_AfterProcessFile(Sender) 'frmFileUpload_FileUpload1_AfterProcessFile @4-44D63265
'Custom Code @8-73254650
' -------------------------
%>
<script language="JavaScript">
JustClose();
</script>
<%
' -------------------------
'End Custom Code
End Function 'Close frmFileUpload_FileUpload1_AfterProcessFile @4-54C34B28
And does *not* work? why or how should I call a Java function from an event triggered by a component, in this case, a FileUpload.AfterProcessFile event?
Very Thanks for your help...
_________________
Programming win32 and went crazy... |
 |
 |
Edd
Posts: 547
|
| Posted: 05/23/2006, 1:03 AM |
|
Try
--------------------------
Function frmFileUpload_FileUpload1_AfterProcessFile(Sender)
if frmFileUpload.Errors.Count = 0 Then
unloadpage()
response.write "<script>window.opener.location.reload();window.close();</script>"
response.end
End If
---------------------------
That way you don't need any additional Javascript.
Edd
_________________
Accepting and instigating change are life's challenges.
http://www.syntech.com.au |
 |
 |
favc4
Posts: 30
|
| Posted: 05/23/2006, 12:31 PM |
|
Edd
Your post clarified everything and works GREAT!
Thank you very much for your help
cHUk
_________________
Programming win32 and went crazy... |
 |
 |
|