I don't think you understood my question...
I have no problem using synchronous or async.. calls, but I can't get to my
server side event, because of the error ..
if(typeof AdMonitorWeb == "undefined") AdMonitorWeb={};
AdMonitorWeb._Default_class = function() {};
Object.extend(AdMonitorWeb._Default_class.prototype, Object.extend(new
AjaxPro.AjaxClass(), {
VerifySession: function() {
return this.invoke("VerifySession", {},
this.VerifySession.getArguments().slice(0));
},
url: '/AdMonitorWeb/ajaxpro/AdMonitorWeb._Default,AdMonitorWeb.ashx'
}));
AdMonitorWeb._Default = new AdMonitorWeb._Default_class();
I GET AN AJAXPRO IS NOT DEFINED ERROR ON THE THIRD LINE!.
AND I'VE CHANGED TO ASYN CALL ALSO, JUST IN CASE:
function Verificar(){
AdMonitorWeb._Default.VerifySession(Verificar_callback);
}
function Verificar_callback(res){
if (!res=="" || !res==null){
window.parent.location.href = res.value;
}
}
BUT IT DOES NOT WORK EITHER!!!!
----- Original Message -----
From: "o0JoeCool0o" <[EMAIL PROTECTED]>
To: "Ajax.NET Professional" <[email protected]>
Sent: Thursday, August 10, 2006 5:04 PM
Subject: [ajaxpro] Re: Steps to get AjaxPro to work!!!
>
> Alexandro please start your own thread next time
>
> As for your problem you should be using ascynronous calls and using a
> call back function. there is no need to use a synchronous call as you
> can make you app wait for the callback anyway.
>
> There are many examples on how to do this I think all of the examples
> in fact show how to do it this way.
> when you call your server side method include a callback method as the
> last parameter, that will be the function that the "result" will come
> back to.
>
>
> And Junior stop advertising this is not an advertisement board this is
> a board for helping people with ajaxpro.net.
>
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ajax.NET Professional" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/ajaxpro
The latest downloads of Ajax.NET Professional can be found at
http://www.ajaxpro.info/
Don't forget to read my blog at http://weblogs.asp.net/mschwarz/
-~----------~----~----~----~------~----~------~--~---