LaunchPickerTreeDialog is showing up blank in Sandbox Solution
Hi Michael,
Please use my code as the following in your content editor web part.
<scriptsrc="/_layouts/1033/pickertreedialog.js"type="text/javascript"></script><scripttype="text/javascript">function launchPicker(){var listURLField = document.getElementById("URLTextBox");var defaultURL ="/";var url ="http://ghy/SitePages/Home.aspx";if(listURLField !=null&& listURLField !=''){ url = listURLField.value.substring(0, listURLField.value.lastIndexOf('/'));}//call back function var callback =function(arr){if(arr ==null|| arr ==undefined|| arr[1]==null|| arr[2]==null)return; lastSelectedListSmtPickerId = arr[0];var listURL ='';if(listURL.substring(listURL.length -1)!='/') listURL = listURL +'/';if(arr[1].charAt(0)=='/') arr[1]= arr[1].substring(1); listURL = listURL + arr[1];if(listURL.substring(listURL.length -1)!='/') listURL = listURL +'/';if(arr[2].charAt(0)=='/') arr[2]= arr[2].substring(1); listURL = listURL + arr[2];if(listURL !=''&& listURL !=null) listURLField.value = listURL;var siteURL ='';if(siteURL.substring(listURL.length -1)!='/') siteURL = siteURL +'/';if(arr[1].charAt(0)=='/') arr[1]= arr[1].substring(1); siteURL = siteURL + arr[1];if(siteURL.substring(siteURL.length -1)!='/') siteURL = siteURL +'/';if(arr[2].charAt(0)=='/') arr[2]= arr[2].substring(1); siteURL = siteURL + arr[2];if(siteURL !=''&& siteURL !=null) listURLField.value = siteURL;}LaunchPickerTreeDialog("CbqPickerSelectListTitle","CbqPickerSelectListTitle","","", url,null,"","","",0, callback);}</script><inputid="URLTextBox"type="text"size="100"maxlength="300"/><inputid="btnBrowse"onclick="launchPicker()"type="button"value="Copy Destination"/>
Thanks,
Jack
Jack Gao
TechNet Community Support