call function in window on close

7 posts, 0 answers
  1. Albert Shenker
    Albert Shenker avatar
    586 posts
    Member since:
    Mar 2004

    Posted 07 Jun 2010 Link to this post

    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?
  2. Trent
    Trent avatar
    19 posts
    Member since:
    Apr 2009

    Posted 09 Jun 2010 Link to this post

    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.



  3. Albert Shenker
    Albert Shenker avatar
    586 posts
    Member since:
    Mar 2004

    Posted 09 Jun 2010 Link to this post

    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.
  4. Trent
    Trent avatar
    19 posts
    Member since:
    Apr 2009

    Posted 09 Jun 2010 Link to this post

    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
  5. Albert Shenker
    Albert Shenker avatar
    586 posts
    Member since:
    Mar 2004

    Posted 09 Jun 2010 Link to this post

    I think a demo page would be helpful. Thanks.
  6. Trent
    Trent avatar
    19 posts
    Member since:
    Apr 2009

    Posted 09 Jun 2010 Link to this post

    Gday Albert, Another 48 hours and we'll have something live.

  7. Albert Shenker
    Albert Shenker avatar
    586 posts
    Member since:
    Mar 2004

    Posted 23 Jun 2010 Link to this post

    Trent, can you provide some instructions on how to view this functionality on the demo site. Thanks!
Back to Top