How can i go about intercepting a particular update, for example. If i have a page with a grid view inside an updatepanel, a timercontrol that fires and the gridview is reloaded. If this takes time i'd like to notify the user.
So lets say you want to notify the user when ever any type of routine is being run where atlas is communicating with the server. And lets say you want to do something as simple as gmail, a little red div appears and dissapears accordingly
Any suggestion / ideas would be greatly appreciated
Thanks
Dray
The fool thinks himself to be wise, but the wise man knows himself to be a fool
I've created exactlly the same demo web on my machine :).
But I need to know about completion of an action on client side.
I need to call my own java script function.I think that it should base on
interception of Atlas call and adding my own handler of oncomplete event.
Thanks, that what I've been looking for although it looks like kind of hack :).
How can I get a list of available methods and properties of "args" and "obj" objects
from following event handler:
function changed( obj, args )
I need to know for examply which UpdatePanel caused post back.
Dray
Member
40 Points
7 Posts
Intercepting Atlas on client
Jan 18, 2006 07:47 PM|LINK
How can i go about intercepting a particular update, for example. If i have a page with a grid view inside an updatepanel, a timercontrol that fires and the gridview is reloaded. If this takes time i'd like to notify the user.
So lets say you want to notify the user when ever any type of routine is being run where atlas is communicating with the server. And lets say you want to do something as simple as gmail, a little red div appears and dissapears accordingly
Any suggestion / ideas would be greatly appreciated
Thanks
Dray
freshlimesod...
Member
25 Points
5 Posts
Re: Intercepting Atlas on client
Jan 19, 2006 05:43 AM|LINK
I am Still stumped.
This should be a pretty thing - you have a update panel - and you need a callback for it ? Please somebody from the team ....
We can have a callback if we are manually making a call - but where do we specify the callback location if you have an update panel ?
freshlimesod...
Member
25 Points
5 Posts
Re: Intercepting Atlas on client
Jan 21, 2006 01:52 AM|LINK
Is Something like Function OnComplete() Available?
This will help is making loaders etc...
Atlas team ?
Pawel Pabich
Member
30 Points
6 Posts
Re: Intercepting Atlas on client
Apr 20, 2006 01:36 PM|LINK
Luis Abreu
All-Star
25674 Points
5369 Posts
MVP
Re: Intercepting Atlas on client
Apr 20, 2006 02:02 PM|LINK
hello.
have you tried using the updateprogress control? it should solve your problem....
Regards,
Luis Abreu
email: labreu_at_gmail.com
EN blog:http://msmvps.com/blogs/luisabreu
Pawel Pabich
Member
30 Points
6 Posts
Re: Intercepting Atlas on client
Apr 20, 2006 02:28 PM|LINK
but I do not see how updateprogress can help me.
I need to know that particular update action has been completed.
Maybe I've overlooked somethig?
Luis Abreu
All-Star
25674 Points
5369 Posts
MVP
Re: Intercepting Atlas on client
Apr 20, 2006 02:40 PM|LINK
hello again.
see if this page does what you need:
<%
@ Page Language="C#" %><!
DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><
script runat="server"> void h(object sender, EventArgs args){
info.Text = ((
Button)sender).ID + " " + DateTime.Now.ToString();System.Threading.
Thread.Sleep(2000);}
</
script><
html xmlns="http://www.w3.org/1999/xhtml" ><
head runat="server"> <title>Untitled Page</title></
head><
body> <form id="form1" runat="server"> <atlas:ScriptManager runat="server" id="manager" EnablePartialRendering="true"> </atlas:ScriptManager> <atlas:UpdatePanel runat="server" ID="panel"> <ContentTemplate> <asp:Button runat="server" ID="bt" Text="Submit" OnClick="h" /> <asp:Literal runat="server" ID="info" /> </ContentTemplate> </atlas:UpdatePanel> <atlas:updateprogress runat="server" ID="prog1"> <ProgressTemplate>Updating...you can put what you want here... an img, etc;
you can position it with css, if that's important
</ProgressTemplate> </atlas:updateprogress> </form></
body></
html>Regards,
Luis Abreu
email: labreu_at_gmail.com
EN blog:http://msmvps.com/blogs/luisabreu
Pawel Pabich
Member
30 Points
6 Posts
Re: Intercepting Atlas on client
Apr 20, 2006 03:14 PM|LINK
But I need to know about completion of an action on client side.
I need to call my own java script function.I think that it should base on
interception of Atlas call and adding my own handler of oncomplete event.
Luis Abreu
All-Star
25674 Points
5369 Posts
MVP
Re: Intercepting Atlas on client
Apr 20, 2006 10:19 PM|LINK
hello.
maybe something like this?
http://forums.asp.net/thread/1263367.aspx
Regards,
Luis Abreu
email: labreu_at_gmail.com
EN blog:http://msmvps.com/blogs/luisabreu
Pawel Pabich
Member
30 Points
6 Posts
Re: Intercepting Atlas on client
Apr 21, 2006 10:40 AM|LINK
Thanks, that what I've been looking for although it looks like kind of hack :).
How can I get a list of available methods and properties of "args" and "obj" objects
from following event handler:
function changed( obj, args )
I need to know for examply which UpdatePanel caused post back.
Thanks again