Author: hud2000 | Posted on: 6/4/2008 2:18:35 PM | Views : 381

here is what I want to do...
 I want to call a webservice, and on success, I want to pass the "result" value BACK to another javascript function that initially started this whole mess to begin with
 so this code works fine...
  
function Calculate()
{
...
var lblZip = document.all.ctl00_ContentPlaceHolder1_lblZip;
...
GetMaxCLTV(strZip, false);
...
}
function GetMaxCLTV(strZip, IsHomeowner)
{
wsCustomerLookup.GetMaxByZip(strZip, IsHomeowner, MaxCLTVSuccess, MaxCLTVFailure);
}
function MaxCLTVSuccess(result, eventArgs)
{
alert(result);
}
function MaxCLTVFailure(error)
{
alert('error: ' + error);
} 
but I would much prefer something like this...
 
  
function Calculate()
{
...
var lblZip = document.all.ctl00_ContentP ...

Go to the complete details ...