为什么WebService无法正常工作?

[英]Why is the WebService not working?


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.

为什么警报不起作用?在调试函数调用AddTicketPricesSVC时返回正确的值。

3 个解决方案

#1


1  

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

你实现了OnError和OnTimeout处理程序吗?也许有服务器错误?

#2


0  

function OnError(error)
{
    alert(error.get_message());
}
function OnTimeOut()
{
    alert('System Time Out');
}

This is the way to implement it right?

这是实现它的方法吗?

#3


0  

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.

谢谢你的时间和抱歉。这是因为按钮点击没有给出返回false。我觉得我很狡猾。现在我将尝试按照您在相应类似帖子上给我的指示。感谢你的宝贵时间。

智能推荐

注意!

本站翻译的文章,版权归属于本站,未经许可禁止转摘,转摘请注明本文地址:http://www.silva-art.net/blog/2008/11/02/effbfd99bfcbde6fbbcc63f5318d19d5.html



 
© 2014-2019 ITdaan.com 粤ICP备14056181号  

赞助商广告