Hi everyone,
on my form, i allow the users to upload a file to my server. since i do not have a "status" bar telling the user how long it is going to take to upload, i thought i would pop a temp window and ask them to "please wait while file is uploaded".
after the file is uploaded, I want to close the "pop" window. i have read and read throughout this and other websites and cant seem to get anything to work. i tinker with JavaScript at best.
here is my form line that calls the "pop":
<form action="ordersubmit.php" method="post" enctype="multipart/form-data" onSubmit="MM_openBrWindow('pleasewait.html','pleasewait1','width=300,height=250')">
This works fine. The file uploads and the "pop" does appear. However, i can not seem to close the "pop". I am sure its my inexperience.
in the main window's UnLoad event, I placed:
< body onUnload="window.close('pleasewait1')"
this had no affect. the window just smiled at me. :-(
i have also tried:
onUnload="pleasewait1.close()"
Can someone help show me what I am doing wrong?
Have A Great Day!!!,![[bigglasses] [bigglasses] [bigglasses]](/data/assets/smilies/bigglasses.gif)
Nathan
Software Testing Lead
on my form, i allow the users to upload a file to my server. since i do not have a "status" bar telling the user how long it is going to take to upload, i thought i would pop a temp window and ask them to "please wait while file is uploaded".
after the file is uploaded, I want to close the "pop" window. i have read and read throughout this and other websites and cant seem to get anything to work. i tinker with JavaScript at best.
here is my form line that calls the "pop":
<form action="ordersubmit.php" method="post" enctype="multipart/form-data" onSubmit="MM_openBrWindow('pleasewait.html','pleasewait1','width=300,height=250')">
This works fine. The file uploads and the "pop" does appear. However, i can not seem to close the "pop". I am sure its my inexperience.
in the main window's UnLoad event, I placed:
< body onUnload="window.close('pleasewait1')"
this had no affect. the window just smiled at me. :-(
i have also tried:
onUnload="pleasewait1.close()"
Can someone help show me what I am doing wrong?
Have A Great Day!!!,
![[bigglasses] [bigglasses] [bigglasses]](/data/assets/smilies/bigglasses.gif)
Nathan
Software Testing Lead