Click here to Skip to main content
15,892,809 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
This function is not working in IOS 9 . But it is working fine in all other browsers.

while running in ios it returns an error :

SYNTAX_ERR: DOM Exception 12


success function returns partial view (html page)

JavaScript
function FetchProductList(id, type, title) {

    $.ajax({
        url: '/Product/Product/GetProductList?productListId=' + ProductListId,
        type: "POST",
        contentType: "application/html; charset=utf-8 ",
        dataType: 'json',
        params: { "productListId": selectedProductListId },
       data: $('form').serialize(),
        success: function (treedata) {
            debugger;
            $('#tableproductList').html(null);

            $('#tableproductList').append(treedata.responseText);

            FetchSupplierId(selectedProductListId);
            $('#productListHead').html('<h2 style="font-size:16px">' + title + ' (' + ListId + ': ' + accessCode + ')' + '</h2><input type="button" class="btn btn-common editProduct" value=' + '"' + EditandList + '"' + ' onclick="PrdctListDetails(2)"/>');
            $('#tableproductList').show();
            $('#treemainDiv').hide();
            FetchSchoolLocationId(selectedProductListId);

        },
        error: function (treedata) {

            $('#treemainDiv').hide();


        },
    });
}
Posted
Updated 13-Oct-15 4:23am
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900