This issue has to do with this prometheus version. I never had this problem with the ASP.NET version of RadWindow.
Here is my script on the "windowed" page (not parent)
As you can see in the above code, I use try..catch but couldn't catch any error. oWindow indeed got the reference to the window itself, as the other function OpenAnotherWindow works fine.
The value for the actionTakenPlace variable is set through a radajaxpanel, and I have verified it works as I can send other javascript through responsescripts without any issues at all.
I have concluded that everything works -> only the OnClientClose fails. I tried the add_Close method, and it didn't work either.
Here is my script on the "windowed" page (not parent)
| <script type="text/javascript"> | |
| var oWindow; | |
| var actionTakenPlace = false; | |
| try{ | |
| oWindow = GetRadWindow(); | |
| oWindow.OnClientClose = function() | |
| { | |
| if (actionTakenPlace) oWindow.BrowserWindow.location.reload(); | |
| } | |
| } catch(err){ | |
| alert(err.description); | |
| } | |
| function OpenAnotherWindow(url){ | |
| var oBrowserWnd = oWindow.BrowserWindow; | |
| oBrowserWnd.showWindow(url,'AnotherWindow', 800, 600); | |
| } | |
| </script> |
As you can see in the above code, I use try..catch but couldn't catch any error. oWindow indeed got the reference to the window itself, as the other function OpenAnotherWindow works fine.
The value for the actionTakenPlace variable is set through a radajaxpanel, and I have verified it works as I can send other javascript through responsescripts without any issues at all.
I have concluded that everything works -> only the OnClientClose fails. I tried the add_Close method, and it didn't work either.