Author: wy125 | Posted on: 2/17/2009 9:13:39 PM | Views : 432

I am calling a page method from javascript as shown below.  Sometime, the GetHotSellersAjax functions never completes but the timeout never occurs.  When I click a link on the page, or navigate away then I see the alert box from the timeout function.   Anyone know what I'm doing wrong?
 Thanks
 
---------------------------

function pageLoad()
{
PageMethods.GetHotSellersAjax(onHotSalesLoaded, onTimeout, onError, null, 2);
}  function onHotSalesLoaded(result,userContext,methodName)
{

$get("lblBestSales").innerHTML = result;
}
function onTimeout(result)
{
alert("timeout loading hot seller");
} 
< ...

Go to the complete details ...