3 Comments

  1. The problem I have is that I am calling it from JQuery.ajax with code like this:

    function UpdateProfileTab(TabNo, TrueOrFalse, RefreshProfile) {
    var arrData = new Array();
    arrData[0] = JSON.stringify(“”);
    arrData[1] = JSON.stringify(TabNo);
    arrData[2] = JSON.stringify(TrueOrFalse);
    arrData[3] = JSON.stringify(RefreshProfile);

    jQuery.ajax({
    type: “POST”,
    contentType: “application/json; charset=utf-8”,
    dataType: “json”,
    data: ‘{“pvarrData”: ‘ + JSON.stringify(arrData) + ‘}’,
    url: “/wcfservices/ProfileBuilderService.svc/UpdateProfileTab”,
    async: false, //

    error: function (XMLHttpRequest, textStatus, errorThrown) {
    alert(‘XHR ERROR ‘ + XMLHttpRequest.responseText);
    },
    success: function (result) {
    if (result.hasOwnProperty(“d”)) result = result.d;
    if (!result) {
    alert(“Error updating UpdateProfileTab. Result = ” + result);
    } else {
    if (result > 0) {
    newClass = “pDial” + result
    $(“.ProfilePercentComplete”)[0].className = “ProfilePercentComplete fl PogressDial ”
    $(“.ProfilePercentComplete”).addClass(“ProfilePercentComplete fl PogressDial ” + newClass);
    }
    }
    }
    });

    }

    So I am at a loss as to where I need to put the suggested code.

Leave a Reply

Your email address will not be published. Required fields are marked *