[EMAIL PROTECTED] schrieb:
> I want to add additional client-side parameter to callback function
> when we call server-side function. And server-side code is not
> significan here. Of course, I may use a global variable to escape this
> problem, but this solution not at all good.
Your solution is wrong.
> Do you understand me?
Use the context
function blah()
{
var context = {};
context.Name = 'Hallo';
context.Street = 'Sesamestreet';
MyPage.ClientFunction(par1, par2, blah_CB, context);
]
function blah_CB(res)
{
if (res.error == null)
{
var val = res.value;
var context = res.context;
alert(context.Street);
}
}
--
Freundliche Grüße
Albert Weinert
http://der-albert.com
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---