This is a migrated thread and some comments may be shown as answers.

call function in window on close

6 Answers 113 Views
Window
This is a migrated thread and some comments may be shown as answers.
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
Albert Shenker asked on 08 Jun 2010, 02:40 AM
I use Rad AjaxManager and open all of my popups through window.radopen. A particular page (contentpage.aspx) is opened in a rad window. I would, like, if the user clicks on the "X" to execute some codebehind on the contentpage.aspx. I see one can wire up the OnCLientClose event of rad window, but it seems the javascript funciton has to exist in the page the window was opened from, and not in the page that is loaded in the window. ALso, the timing of wiring up this event doesn't seem to work for me, since it seems the event has to be wired up prior to the eindow being opened. so, in general, is it possible to run some server-side code behind method in a content page in response to a user clicking on the "X" in a rad window opened through Window Manager?

6 Answers, 1 is accepted

Sort by
0
Trent
Top achievements
Rank 2
answered on 09 Jun 2010, 03:04 PM
Hello Albert,

Did you find a solution to this problem?

We are trying the same thing, but to update a database on radwindow close (X), via ajax manager.

We have an experts exchange question that outlines the problem in significant detail.



0
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
answered on 09 Jun 2010, 03:27 PM
I haven't found a solution yet. I too, could very well call some client-side script, which initiates sever-side code via ajax. However, I am not familiar with a way of wiring up content-page javascript to the "X" close event of a rad window.
0
Trent
Top achievements
Rank 2
answered on 09 Jun 2010, 04:33 PM
Hello Albert,  We may have some good news for you, we have a solution
...It now works fine although we having separate issues in IE8, as the live version is not playing the actual video (the whole reason for the code), but at least we now have video hit based updates and time start and time finish for viewing the video being updated. 

If you cant make it out from the code we have uploaded we can post more or just send/upload a sample, although there is a lot of other unrelated stuff going on on the same page which may be of use.  We will be posting a live version as a demo, on xgis.com.au , once we have the video display and image display working 100%.
Cheers Aaron
0
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
answered on 09 Jun 2010, 05:02 PM
I think a demo page would be helpful. Thanks.
0
Trent
Top achievements
Rank 2
answered on 10 Jun 2010, 04:14 AM
Gday Albert, Another 48 hours and we'll have something live.

0
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
answered on 23 Jun 2010, 04:55 PM
Trent, can you provide some instructions on how to view this functionality on the demo site. Thanks!
Tags
Window
Asked by
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
Answers by
Trent
Top achievements
Rank 2
Albert Shenker
Top achievements
Rank 1
Veteran
Iron
Share this question
or