#2356: IE7 Access Denied - Local Filesystem
----------------------+-----------------------------------------------------
Reporter: samuelms | Owner:
Type: Bug | Status: new
Priority: Normal | Milestone: FCKeditor 2.6.3
Component: General | Version: FCKeditor 2.6.2
Keywords: |
----------------------+-----------------------------------------------------
Problem: Opening any of the html sample pages of FCKEditor from the
filesystem in IE7 gives an "Access Denied" error coming from file
fckeditor\editor\js\fckeditorcode_ie.js on line 62 with the code:
"B.open("GET",A,false);".
This has been resolved by me in the post:
http://www.fckeditor.net/forums/viewtopic.php?f=6&t=10424
Basically the native IE7 XmlHttpRequest Object appears to not allow
requests on the filesystem. Here is the offending code causing the issues:
(file fckeditor\editor\_source\internals\fcktools_ie.js)
FCKTools.CreateXmlObject = function( object )
{
var aObjs ;
switch ( object )
{
case 'XmlHttp' :
// Try the native XMLHttpRequest introduced with IE7.
try { return new XMLHttpRequest() ; } catch (e) {} // bad for
use on local filesystem
aObjs = [ 'MSXML2.XmlHttp', 'Microsoft.XmlHttp' ] ; // use this
instead for local filesystem
break ;
case 'DOMDocument' :
aObjs = [ 'MSXML2.DOMDocument', 'Microsoft.XmlDom' ] ;
break ;
}
for ( var i = 0 ; i < 2 ; i++ )
{
try { return new ActiveXObject( aObjs[i] ) ; }
catch (e)
{}
}
if ( FCKLang.NoActiveX )
{
alert( FCKLang.NoActiveX ) ;
FCKLang.NoActiveX = null ;
}
return null ;
}
--
Ticket URL: <http://dev.fckeditor.net/ticket/2356>
FCKeditor <http://www.fckeditor.net/>
The text editor for Internet
-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac