here is the problem where i am able to use the object of AssetPicker to load it as a dialog box on my button click by refering the below solution
Opening and closing AssetPortalBrowser.aspx in SharePoint modal popup ..but the issue is that when ever i clicked on "Insert" action it give the below error..
can any one have idea why ? and pls solution for it .. Urgent..
UPDATE
below is the simple code i have placed in my CEWP
var testobj = new AssetPickerConfig();
obj.CurrentWebBaseUrl = _spPageContextInfo.webAbsoluteUrl;
obj.ReturnCallback = getPickertUrl;
function getPickertUrl(url) {
console.log(url);
document.getElementById('txtURL').value = url;
}
function openPicker(){
APD_LaunchAssetPicker(testobj);
}
commonModalDialogClose
.