﻿function LoadAsyncHtml(url, TargetElemSelector, TimeoutFunc) {
    $.ajax({
        type: "POST",
        url: url,
        data: "{}",
        contentType: "application/json; charset=utf-8",
        dataType: "json",
        error: function (xhr, statusText, errorThrown) {
            if (xhr.status == '12030') {
                setTimeout(TimeoutFunc, 2000);
            }
        },
        success: function (msg) {
            $(TargetElemSelector).html(msg.d);
        }
    });
}
