www.webdeveloper.com
Results 1 to 6 of 6

Thread: Access is Denied error in IE 6, but works fine in Firefox 3.0.11

  1. #1
    Join Date
    Mar 2009
    Posts
    54

    Access is Denied error in IE 6, but works fine in Firefox 3.0.11

    I don't get any javascript errors in Firefox 3.0.11

    Why is this working fine on Firefox and giving me "Access is denied" javascript error on IE.

    Any clues/ideas are appreciated.

    Thanks a lot!

    Srinivas

  2. #2
    Join Date
    Dec 2003
    Location
    Bucharest, ROMANIA
    Posts
    15,428
    Quote Originally Posted by seenuFour View Post
    Any clues/ideas are appreciated.
    Any posted code or link to a page are appreciated. Do you think we are psycho or do we have a magic bowl? Show us the code!

  3. #3
    Join Date
    Mar 2009
    Posts
    54
    Hey,

    Sorry for not giving details.

    I am seeing this strange behavior while using TinyMCE editor. The problem is with "Paste from word" plugin in TinyMCE editor while using in IE 6. I get a "Access is denied" javascript error when I click on "paste from word".

    Thanks

    Srinivas

  4. #4
    Join Date
    Dec 2003
    Location
    Bucharest, ROMANIA
    Posts
    15,428
    Not enough. You have used the TinyMCE editor where? We can not judge without a code. There might be a thousand of reasons for IE6 woun't work (IE6 remains the worst browser on use these days).

    This type of message "Access is denied" is probably due to the fact that IE6 thinks you are accessing somehow another domain (in your pop-up, frame or iframe...). There is nothing more I can tell you about, without a clear code to be seen.

  5. #5
    Join Date
    Mar 2009
    Posts
    54
    The code is too long:

    <html><head><LINK REL=stylesheet HREF="/irj/portalapps/com.sap.portal.design.portaldesigndata/themes/portal/gfc_epd/glbl/glbl_ie6.css?7.0.17.0.1">
    <LINK REL=stylesheet HREF="/irj/portalapps/com.sap.portal.design.portaldesigndata/themes/portal/gfc_epd/prtl_std/prtl_std_ie6.css?7.0.17.0.1">

    <!-- EPCF: BOB Core -->
    <meta http-equiv="Content-Script-Type" content="text/javascript">
    <script src="/irj/portalapps/com.sap.portal.epcf.loader/script/optimize/js13_epcf.js?7.00001608"></script>
    <script>
    <!--
    EPCM.relaxDocumentDomain();
    EPCM.init( {
    Version:7.00001608,
    Level:1,
    PortalVersion:"7.00.200809172353",
    DynamicTop:false, // [service=true nestedWinOnAlias=false]
    UAType:1, // [MSIE]
    UAVersion:6.0,
    UAPlatform:1, // [Win]
    UIPMode:"1", // [Default=1, User=0, Personalize=true]
    UIPWinFeatures:"",
    UIPPortalPath:"http://jury.gfcsap.com:50100/irj/portal",
    UIPPopupComp:"/irj/servlet/prt/portal/prtroot/com.sap.portal.epcf.admin.WorkProtectPopup",
    UIPPopupCompSize:"dialogWidth:450px; dialogHeight:200px; status:no",
    UIPPopupMsgNN:"",
    UIPPopupMsgND:"",
    DBGException:false
    } );
    EPCM.DSM.init( {
    TerminatorURL:"/irj/servlet/prt/portal/prtroot/com.sap.portal.dsm.Terminator",
    WinEmptyUrl:"/irj/portalapps/com.sap.portal.dsm/images/empty.gif",
    ForcedUserDebug:false,
    KeepAliveActive:false,
    KeepAliveDelta:840,
    KeepAliveStopAfter:36000
    } );
    function SAPWP_receiveSessInfo( sessInfo, frameRef ){
    EPCM.DSM.processSession( sessInfo, frameRef );
    }
    //-->
    </script>
    <!-- EPCF: EOB Core -->

    <!-- HTML Business for Java, 645_VAL_REL, 496543, Wed Sep 17 14:16:44 CDT 2008 -->
    <!-- HTMLB: begin VARS -->
    <script language="JavaScript">
    ur_system = {doc : window.document , mimepath :"/irj/portalapps/com.sap.portal.design.urdesigndata/themes/portal/gfc_epd/common/", stylepath : "/irj/portalapps/com.sap.portal.design.urdesigndata/themes/portal/gfc_epd/ur/", emptyhoverurl : "/irj/portalapps/com.sap.portal.htmlb/jslib/emptyhover.html", is508 : false, dateformat : 1, domainrelaxing : "MINIMAL"};
    </script>
    <!-- HTMLB: end VARS -->
    <title >DEV Portal</title><meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8"><link REL=STYLESHEET HREF="/irj/portalapps/com.sap.portal.design.urdesigndata/themes/portal/gfc_epd/ur/ur_fc_05_ie6.css?7.0.17.0.1" TYPE="text/css" ><link REL=STYLESHEET HREF="/irj/portalapps/com.sap.portal.design.urdesigndata/themes/portal/gfc_epd/ur/ur_fcd_ie6.css?7.0.17.0.1" TYPE="text/css" ><link REL=STYLESHEET HREF="/irj/portalapps/com.sap.portal.design.urdesigndata/themes/portal/gfc_epd/ur/ur_tab_05_ie6.css?7.0.17.0.1" TYPE="text/css" ><link REL=STYLESHEET HREF="/irj/portalapps/com.sap.portal.design.urdesigndata/themes/portal/gfc_epd/ur/ur_pag_ie6.css?7.0.17.0.1" TYPE="text/css" ><link REL=STYLESHEET HREF="/irj/portalapps/com.sap.portal.design.urdesigndata/themes/portal/gfc_epd/ur/ur_efc_ie6.css?7.0.17.0.1" TYPE="text/css" ><script SRC="/irj/portalapps/com.sap.portal.htmlb/jslib/controls_ie5.js" ></script><script SRC="/irj/portalapps/com.sap.portal.htmlb/jslib/sapUrMapi_ie6.js" ></script><script SRC="/irj/portalapps/com.sap.portal.htmlb/jslib/popup_ie6.js" ></script><script SRC="/irj/portalapps/com.sap.portal.htmlb/jslib/languages/urMessageBundle_en.js" ></script><script SRC="/irj/portalapps/com.sap.nw.wpc.core/scripts/editorCommon.js" ></script><script SRC="/irj/portalapps/com.sap.nw.wpc.core/scripts/editorIE6.js" ></script><script SRC="/irj/portalapps/Tmce/scripts/tiny_mce/tiny_mce.js" ></script><script SRC="/irj/portalapps/Tmce/scripts/tiny_mce/utils/idemodification.js" ></script><link REL=STYLESHEET HREF="/irj/portalapps/com.sap.portal.design.urdesigndata/themes/portal/gfc_epd/ur/ur_fc_ie6.css?7.0.17.0.1" TYPE="text/css" ></head><body class="prtlBody urFontBaseFam urScrl">
    <!-- EPCF: Component com.sap.nw.wpc.designtime.EditorTool, mlpkkhaoagepkihjaedknjccjjjmdjkk -->





















    <style type="text/css">
    .dragableArea{position:absolute;display:none;z-index:1000;width:450px;height:450px;}

    </style>


    <script type="text/javascript" src="/irj/portalapps/com.sap.nw.wpc.designtime/scripts/tool.js" ></script>

    <script type="text/javascript">

    var ie=document.all;
    var nn6=document.getElementById&&!document.all;
    var isdrag=false;
    var x,y;
    var dobj;
    var scrollPos = 0;

    if(EPCM.loadClientData("https://com.sap.nw.wpc","float_visible")==undefined) {
    EPCM.storeClientData("https://com.sap.nw.wpc","float_visible","none");
    }

    if(EPCM.loadClientData("https://com.sap.nw.wpc","float_top")==undefined){
    EPCM.storeClientData("https://com.sap.nw.wpc","float_top",10);
    }
    if(EPCM.loadClientData("https://com.sap.nw.wpc","float_left")==undefined){
    EPCM.storeClientData("https://com.sap.nw.wpc","float_left",10);
    }
    //document.onmousedown=selectmouse;
    //document.onmouseup=new Function("isdrag=false");
    //window.onscroll = scroll;




    </script>


    <form id="t3_refresh" method="mode" action="/irj/servlet/prt/portal/prtroot/com.sap.nw.wpc.runtime.default">
    </form>

    <div id="t3FloatWindow" align="center" class="dragableArea" onmousedown="dragStart(event, 't3FloatWindow')" isDragable="">
    <div id="pickList" style="
    border:2px outset #CCCCCC;background-color:#2186BD;">
    <div style="background-color:#2186BD;">
    <div style="height:25px;padding:6px;float:left;"><a class="wpca" href="#" onclick="togglePinUp();return false;"><img id="pinImage" src="/irj/go/km/docs/etc/public/mimes/images/pinup_unset.gif" border="0"></a></div>
    <div style="height:25px;padding:6px;float:right;"><a class="wpca" href="#" onclick="toggleFloat();return false;"><img src="/irj/go/km/docs/etc/public/mimes/images/close.gif" border="0"></a></div>
    <div style="height:25px;color:FFFFFF;padding-top:3px;padding-top:8px;margin-left:12px;margin-right:12px;width:100%" onmouseover="this.style.cursor='hand'" onmouseout="this.style.cursor=''">Web Content Browser</div>
    </div>
    <div id="t3Loading" style="background-color:#FFFFFF;display:block;width:450px;height:450px;padding-top:200px" >
    <img src="/irj/portalapps/com.sap.nw.wpc.designtime/images/loading_ani.gif" /><p class="wpcp">&nbsp;Loading....</p>
    </div>
    <div style="background-color:#FFFFFF;">
    <iframe id="t3FloatFrame" style="display:none" frameborder="0" onload="onFrameLoad(this);" width="450px" height="450px" src="/irj/servlet/prt/portal/prtroot/com.sap.nw.wpc.designtime.EmptyComponent"></iframe>
    </div>

    </div>
    </div>


    <script>

    el = document.getElementById('t3FloatWindow');
    elfr = document.getElementById('t3FloatFrame');
    if(EPCM.loadClientData("https://com.sap.nw.wpc","float_top")!=undefined){
    el.style.top = EPCM.loadClientData("https://com.sap.nw.wpc","float_top");
    }
    if(EPCM.loadClientData("https://com.sap.nw.wpc","float_left")!=undefined){
    el.style.left = EPCM.loadClientData("https://com.sap.nw.wpc","float_left");
    }
    if(EPCM.loadClientData("https://com.sap.nw.wpc","float_visible")!=undefined){
    el.style.display = EPCM.loadClientData("https://com.sap.nw.wpc","float_visible");

    }



    el2 = document.getElementById('t3FloatFrame');

    if(EPCM.loadClientData("https://com.sap.nw.wpc","float_src")!=undefined){
    el2.src = EPCM.loadClientData("https://com.sap.nw.wpc","float_src");

    }

    if(EPCM.loadClientData("https://com.sap.nw.wpc","pin_image")!= undefined){
    document.getElementById('pinImage').src = EPCM.loadClientData("https://com.sap.nw.wpc","pin_image");
    }

    </script><script defer language="JavaScript">ur_system.is508=false;ur_language="en";;</script>
    <script>type="text/javascript">
    tinyMCE.init({
    theme_advanced_resizing : true
    ,
    theme_advanced_statusbar_location : "bottom",
    file_browser_callback : "myCustomFileBrowser",
    plugins : "safari,pagebreak,style,layer,table,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatet ime,preview,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars, nonbreaking,xhtmlxtras,template",
    theme_advanced_toolbar_location : "top",
    theme : "advanced",
    mode : "textareas",
    theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,non breaking,template,pagebreak",
    convert_urls : false
    ,
    theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,iespell,advhr,|,print,|,ltr,rtl,|,ful lscreen",
    editor_selector : "mceEditor",
    theme_advanced_toolbar_align : "left",
    theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,| ,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor, backcolor",
    theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,fontsize select"
    });
    </script><script defer>sapUrMapi_Focus_RegisterCreate(null,event)</script>



    <LINK REL="stylesheet" HREF="/irj/go/km/docs/etc/wpceditor/css/contenteditor/csin.css">

    <LINK REL="stylesheet" HREF="/irj/go/km/docs/etc/wpceditor/css/contenteditor/wpc_editor.css">
    Last edited by seenuFour; 07-20-2009 at 04:25 PM.

  6. #6
    Join Date
    Mar 2009
    Posts
    54
    This is the executing code when I get "Access is denied" java script error

    Code:
    tinyMCEPopup.requireLangPack();
    
    var PasteWordDialog = {
    	init : function() {
    		var ed = tinyMCEPopup.editor, el = document.getElementById('iframecontainer'), ifr, doc, css, cssHTML = '';
    
    		// Create iframe
    		el.innerHTML = '<iframe id="iframe" src="javascript:\'\';" frameBorder="0" style="border: 1px solid gray"></iframe>';
    		ifr = document.getElementById('iframe');
    		doc = ifr.contentWindow.document;
    
    		// Force absolute CSS urls
    		css = [ed.baseURI.toAbsolute("themes/" + ed.settings.theme + "/skins/" + ed.settings.skin + "/content.css")];
    		css = css.concat(tinymce.explode(ed.settings.content_css) || []);
    		tinymce.each(css, function(u) {
    			cssHTML += '<link href="' + ed.documentBaseURI.toAbsolute('' + u) + '" rel="stylesheet" type="text/css" />';
    		});
    
    		// Write content into iframe
    		doc.open();
    		doc.write('<html><head>' + cssHTML + '</head><body class="mceContentBody" spellcheck="false"></body></html>');
    		doc.close();
    
    		doc.designMode = 'on';
    		this.resize();
    
    		window.setTimeout(function() {
    			ifr.contentWindow.focus();
    		}, 10);
    	},
    
    	insert : function() {
    		var h = document.getElementById('iframe').contentWindow.document.body.innerHTML;
    
    		tinyMCEPopup.editor.execCommand('mceInsertClipboardContent', false, {content : h, wordContent : true});
    		tinyMCEPopup.close();
    	},
    
    	resize : function() {
    		var vp = tinyMCEPopup.dom.getViewPort(window), el;
    
    		el = document.getElementById('iframe');
    
    		if (el) {
    			el.style.width  = (vp.w - 20) + 'px';
    			el.style.height = (vp.h - 90) + 'px';
    		}
    	}
    };
    
    tinyMCEPopup.onInit.add(PasteWordDialog.init, PasteWordDialog);

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles