hooser
In IE 11 browser, When try to open a window with Dropbox authentication page for Dropbox Chooser,
We are getting the error "Unable to communicate with parent window" in the authentication window.
We are using the following code :
var options = {
// Required. Called when a user selects an item in the Chooser.
success: function(files) {
var docName = files[0].name;
var docExtension = "";
if (docName.indexOf(".") != -1) {
var tmpNameArray = docName.split(".");
docExtension = tmpNameArray[tmpNameArray.length - 1];
}
},
// Optional. Called when the user closes the dialog without selecting a file
// and does not include any parameters.
cancel: function() {
},
// Optional. "preview" (default) is a preview link to the document for sharing,
// "direct" is an expiring link to download the contents of the file. For more
// information about link types, see Link types below.
linkType: "preview", // or "direct"
// Optional. A value of false (default) limits selection to a single file, while
// true enables multiple file selection.
multiselect: false // or true
// Optional. This is a list of file extensions. If specified, the user will
// only be able to select files with these extensions. You may also specify
// file types, such as "video" or "images" in the list. For more information,
// see File types below. By default, all extensions are allowed.
};
var button = Dropbox.createChooseButton(options);
Dropbox.choose(options);
and the following script is included in the jsp :
<script type="text/javascript" src="https://www.dropbox.com/static/api/2/dropins.js" id="dropboxjs" data-app-key="<APPKEY>"></script>
Can anyone please give solution for this issue ?