Call aspx page by ajax - ArgumentTypeException exception when leaving the page

we try to load a product details page client-side by an ajax request

    var loadProduct = function (guid, resp) {
        $.ajax({
            type: "GET",
            url: location.protocol + "//" + location.host + L_Menu_BaseUrl + "/_layouts/15/myfeature/ProductDetails.aspx?TermGuid=" + guid,
            cache: false,
        }).done(function (msg) {
            if (msg.length > 0) {
                loadProductWithData(msg);
            }
            else {
                loadEmptyProduct();
            }
        });
    }

    var loadProductWithData = function (data) {
        $("#productDetails").parent().html(data);
    }

firstly everything seems to be ok. the product Details page is shown in the "#productDetails" div. But when we want to leave the sharepoint page or just reload it this exception appears:

"Sys.ArgumentTypeException: Object of type 'SP.UI.ApplicationPages.CalendarSelector' cannot be converted to type 'Sys.Component'.\nParameter name: component"
Any idea?


  • Edited by hp-oswald Tuesday, July 28, 2015 9:08 AM
July 28th, 2015 9:07am

Hi,

As you can get the data first load, I suggest you can use Fiddler to trace the web request call to compare the web request to see the difference between the two requests to find more detailed error information.

Fiddler

Thanks

Best Regards

Free Windows Admin Tool Kit Click here and download it now
July 30th, 2015 2:17am

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics