|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today! |
|
#1
|
|||
|
|||
|
Refreshing Parent from Child Window
Dear Friends hello,
I'm having a problem I made a compose page in ASP where I allow user to attach files for this i used to open a new window for attachment when user submit the form I used to display a Done button to refresh the parent forn and close the form. I write the code on click of a button <script> function reload() { opener.location.reload(); window.close(); } </script> I need to refresh the parent form to display the list of files to user. It is perfectly runing but I got the error message from browser window can't refresh without resending data, so please help me to avoid this error message. any help would be apreciated Thanks with Regards Sachin Tandon |
|
#2
|
|||
|
|||
|
You could try setting opener.location=your_page since the other page has obviously been created from post data which would need resubmitting otherwise.
-KM- |
|
#3
|
|||
|
|||
|
Refreshing Parent Window
Hi Sachin Tandon,
You can try following code <script language = javascript> function refreshparent() { if(!window.opener.location) window.opener.location = self; window.opener.location.reload(); window.close(); } </script> I think this might solve your problem Hemant Gautam |
![]() |
| Viewing: Dev Articles Community Forums > Programming > JavaScript Development > Refreshing Parent from Child Window |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|