My project uses the JavaScript add_close function to attach an OnClientClose event handler to a RadWindow. The functionality is very similar to the one in the Returning Values from a Dialog example project. The only difference is that it uses the add_close function described in this RadWindow documentation instead of setting the OnClientClose property.
I initially developed for Internet Explorer, which has been working perfectly well, but now we find that it doesn't work in Chrome or Firefox. I put an alert within the OnClientClose function, and it is never being reached. Can you explain what is different about these browsers that prevents the function from working?
A few extra bits of information, for context:
I initially developed for Internet Explorer, which has been working perfectly well, but now we find that it doesn't work in Chrome or Firefox. I put an alert within the OnClientClose function, and it is never being reached. Can you explain what is different about these browsers that prevents the function from working?
A few extra bits of information, for context:
- I have never gotten an error, as some people have experienced. It never seems to be looking for a function that doesn't exist, it just doesn't try to call the function.
- The window I am opening has a content URL of another .aspx page within my project. The window's content does not exist on the same .aspx page, because it needs to be able to direct to different URLs based on certain user input.
- The window is closed by clicking an "OK" button, which calls a returnToParent function which attaches a result then calls oWnd.close(oArg), just like in the example mentioned above