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

OnAjaxRequest Callback

2 Answers 149 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Acaz
Top achievements
Rank 1
Acaz asked on 27 Jan 2011, 05:54 PM
Exist a Callback to OnAjaxRequest ?

I'm using the ClientEvents-OnResponseEnd="responseEnd".

function

 

 

responseEnd(sender, eventArgs) {
    alert(
'Response complete');
}

This execute when the request END, that's OK, But how i get the return if i want to return some STRING ?

 

2 Answers, 1 is accepted

Sort by
0
Brian Mains
Top achievements
Rank 1
answered on 28 Jan 2011, 07:03 PM
Hey,

You could also try using RadAjaxManager's ResponseScripts collection, which runs JavaScript when the request ends.  That way, you can pass anything from the server to the client (that supports being converted to string) that you like.  You just have to format the script correctly of course.

HTH.
0
Maria Ilieva
Telerik team
answered on 31 Jan 2011, 04:29 PM
Hello Acaz,

Please revise the following help topic:
http://www.telerik.com/help/aspnet-ajax/ajxcustomjavascript.html


All the best,
Maria Ilieva
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Ajax
Asked by
Acaz
Top achievements
Rank 1
Answers by
Brian Mains
Top achievements
Rank 1
Maria Ilieva
Telerik team
Share this question
or