Hi all,
I have page with left and right frame.I have created the fckeditor in the right frame, and it gets loaded when the page loads.Now when I access the right frame FCKeditor in my left frame, I get an error saying that
--------------------------------------------------------------------------------------------------------
uncaught exception: Permission denied to set property Window.FCK_STATUS_NOTLOADED
[Break on this error] undefined
FCKBrowserInfo has no properties
[Break on this error] if ( FCKBrowserInfo.IsGecko )
fckeditor.html (line 203)
FCKLang is not defined
[Break on this error] window.document.dir = FCKLang.Dir ;
fckeditor.html (line 100)
FCK has no properties
[Break on this error] FCK.ContextMenu=new Object();FCK.ContextMenu.Listeners=new Array();FCK.ContextMe...
fckeditorcode_gec... (line 141)
FCKConfig has no properties
[Break on this error] var FCKConfig=FCK.Config=new Object();if (document.location.protocol=='file:'){F...
fckeditorcode_gec... (line 20)
FCKBrowserInfo has no properties
[Break on this error] if ( FCKBrowserInfo.IsIE )
fckeditor.html (line 59)
FCKConfig has no properties
[Break on this error] FCKConfig.CustomConfigurationsPath = 'hyfckconfig.js?'+ ( new Date() * 1 ) ;
fckconfig.js (line 21)
uncaught exception: Permission denied to get property Window.FCKeditorAPI
--------------------------------------------------------------------------------------------------------
But if I access with URL http://localhost:8080/fckeditor it works fine but, when I access the page with
http://localhost/fckeditor it gives the above error.
I sense that error is strictly due to some problem with URL access.
Can anyone please tell me the possible workaround for this.
Thanks in advance.
regards,
Mehmood
Thu, 06/14/2007 - 05:55
#1
RE: Accessing FCKeditor between frames
Are you trying to access a frame which document is from another domain? See http://msdn2.microsoft.com/en-us/library/ms533028.aspx and http://javascript.about.com/od/reference/a/frame3.htm.
RE: Accessing FCKeditor between frames
Thanks for your reply but both frames I use contains documents from the same domain...So I think it may be the problem in setting the basepath where I have assigned it as relative path, but it works fine in its native frame but it couldn't display when it is accessed from the other frame...So we have solution for it??
RE:Resolvd Accessing FCKeditor between frames
When I wanted to add the fckeditor clone of right frame to left frame , I had to append the fckeditor instance in using leftFramObj.appendChild(rightFrameFCK);, but for some reason I was getting a invalid argument error in IE 7.
Also I got permission denied error and It was purely due to the url problem(Always keep in mind about the relative path you give for the basepath should always relative to the document URL where it is accessed ).So this problem got solved.
And about the IE error,instead of appendChild use innerHTML that will work like
leftFrameObj.innerHTML=rightFrameFCKParent.innerHTML;
Hope this will help you all.
regards,
Mehmood