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

[Solved] Window Close Ajaxrequest

1 Answer 125 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
NS
Top achievements
Rank 1
NS asked on 07 Mar 2008, 01:54 PM

Hello,
I use the following code to do an Ajaxrequest on a Radwindow close (this code works)

function OnClientClose()  
    {  
        //use this if RadWindow is used  
        GetRadWindow().BrowserWindow.InitiateAjaxRequest(null);  
        GetRadWindow().Close();  
    } 

I wonder how to modify this code if this is not the page context of a RadWindow, but a regular page opened with window.open or <a href=... target=_blank> ?

Thanks,
Nicolas

1 Answer, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 10 Mar 2008, 03:07 PM
Hello NS,

To achieve your goal, we suggest you use the following code:

RadAjaxManager1.ResponseScripts.Add(String.Format("window.open("http://www.telerik.com").focus();")).

Let us know if this helps.

Best wishes,
Maria Ilieva
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Ajax
Asked by
NS
Top achievements
Rank 1
Answers by
Maria Ilieva
Telerik team
Share this question
or