views:

82

answers:

3
function AddTheatres()
{
    Services.AdminWebServices.AddTheatresSVC(oTheatres,OnSuccessTheatres,OnError,OnTimeOut);
}
function OnSuccessTheatres(result1)
{
    Services.AdminWebServices.AddTicketPricesSVC(oTicketPrices,OnSuccessTicketPrices,OnError,OnTimeOut); //working
}
function OnSuccessTicketPrices(result2)
{
    alert(result2); //not working
}

Why is the alert not working? On Debugging the function calling AddTicketPricesSVC is returning correct value.

+1  A: 

Did you implement the OnError and OnTimeout handlers? Maybe there is a server error?

splattne
yes it is implemented.
naveen
A: 
function OnError(error)
{
    alert(error.get_message());
}
function OnTimeOut()
{
    alert('System Time Out');
}

This is the way to implement it right?

naveen
A: 

Hi splattne, Thanks for your time and sorry. It was because return false was not given on button click. Very imtelligent on my part i guess. Now i will try to follow your instructions u gave me at a corresponding similar post. Thanks again for your time.

naveen
You're welcome. We all need some help from time to time. I hope you will succeed.
splattne