Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

Throwing settimeout error having invalid argument

$
0
0

 $("[price-refresh-button]").live("click", function (e) {

        e.preventDefault();
        var message = $(this).attr("ajax-message");
        var errorMessage = $(this).attr("ajax-error-message");
        var blocked = $("#ProductsContainer");

        $.ajax({
            url: $(this).attr("url"),
            type: "POST",
            context: $(this),
            beforeSend: function () {
                block(blocked, message);
            },
            success: function (correlationId) {
                setTimeout(Hudson.PriceRequest.Summary.PollPriceRefresh(correlationId, $(this).attr('polling-url'), function () {
                    Hudson.PriceRequest.Tabs.loadProductsAndDocuments();
                }), 2500);

            },
            error: function (xhr, textStatus, errorThrown) {

                reportActionErrorResult(errorMessage);
                $(blocked).unblock();
            }
        }); // End Ajax call

===================================

Application breaking on Settime out method saying settimeout method having invalid argument

 


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>