terrible title, perhaps, but hopefully my question will make sense...
I have an exposed webservice, and everything's groovy. Javascript making the calls and returning values no problem, but I want to be able to send values to the callback method (is that the right term?) other than just the values returned by the Web Service. Is this possible? My example:
WebService
[WebMethod]
public string Name(string param1, string param2)
{
string strResults = "*do some stuff*";
return strResults;
}
function fncTesting()
{
WebService.WebMethodName("param1","param2",fncGetWebMethodResults);
}
fncGetWebMethodResults(x)
{
alert(x);
}
If I do the above, the result is an alert box containing *do some stuff*.
What I would like to do, instead, if something like this:
function fncTesting()
{
WebService.WebMethodName("param1","param2",fncGetWebMethodResults("Non-WebMethodParam1","Non-WebMethodParam2"));
}
fncGetWebMethodResults(x,y,z)
{
alert(x);
alert(y);
alert(z);
}
So that fncTesting can send variables to fncGetWebMethodResults without having to return the values of y and z from the WebMethod in an array or something.
Do this make any sense? Thank you...