Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

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

$
0
0

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. Butwhen 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?



Viewing all articles
Browse latest Browse all 7589

Trending Articles



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