Try our conversational search powered by Generative AI!

FileBrowser pop up

Vote:
 

Hi,

I've made a custom admin page in CMS where I'd like to use the built in FileManagerBrowser.aspx. It works almost in all browsers. Guess who!?

Well, in IE, all versions, I get an script error in FileManagerBrowser.aspx. after selecting a file, and then click OK. In stead of close the window and go back to the admin page and return the filepath, the window reloads and give me this eror in the console.

SCRIPT438: Object doesn't support property or method 'removeEventListener'
episerverscriptmanager.js, line 348 character 9

 

My coed looks like this

HTML:

<asp:TextBox runat="server" ID="txtLogoUrl" CssClass="clear" />
<a class="button-find" onclick="PropertyUrl_DoPickup('txtLogoUrl');">Browse target logo</a>

    

JavaScript:

<script type='text/javascript'>
	// <![CDATA[
	function PropertyUrl_DoPickup(obj) {
		var node = document.getElementById(obj);
		var callbackMethod;
		callbackMethod = function (returnValue, callbackArgs) {
			if (returnValue) {
				if (returnValue.closeAction == 'clear') {
					callbackArgs.value = '';
				}
				else if (returnValue.items && returnValue.items.length == 1) {
					callbackArgs.value = returnValue.items[0].path;
				}
				EPi.DispatchEvent(callbackArgs, 'change');
			}
		}
				var dialogUrl = '<%=EPiServer.UriSupport.ResolveUrlFromUIBySettings("edit/FileManagerBrowser.aspx")%>?selectedfile=' + encodeURIComponent(node.value) + "&browserselectionmode=image";
		EPi.CreateDialog(dialogUrl, callbackMethod, node, null, { width: 600 });
	}
	// ]]>
</script>

Any ideas how to fix this?   

 

#75030
Sep 16, 2013 11:18
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.