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?