I'm getting the following error in IE when using the
fckeditor via the xwysiwyg module in phpWebSite:
Line: 18
Char: 1
Error: Permission denied
Code: 0
URL:
http://www.odkf.org/mod/xwysiwyg/_fck/e ... ckeditor.h
tml?InstanceName=SECT_text&Toolbar=Default
I get similar error messages in Firefox.
The strange thing is that it will work fine for awhile, then
quit working. I can also go to a different website using
phpWebSite and xwysiwyg and it will work fine there...
for awhile... then quits working.
Any ideas what causes this and how to fix?
Mon, 12/05/2005 - 12:26
#1
RE: javascript error: permission denied
After much poking around, I found that the "permission denied" error is the result of trying to call the script from http://odkf.org without the "www". This is why it sometimes works, and sometimes doesn't.
If the user has entered the web site using http://odkf.org rather than http://www.odkf.org, then the editor won't work.
RE: javascript error: permission denied
Is there any way to solve it ??
Thanks,
Youngho
RE: javascript error: permission denied
Your problems seems to be that you have hardcoded the full path to the editor specifying also the server, if you use a relative url ("/FCKeditor" instead of "http://www.mydomain.com/FCKeditor") the problem would disappear.
Or you could find if the user is using "mydomain.com" and redirect him to "http://www.mydomain.com" at login.
RE: javascript error: permission denied
You need to update the browsers domain, ie.
[OPENER]
<script type="text/javascript">
location.domain='odkf.org';
window.open('test.html','test','width=100,height=100');
</script>
[OPENED (test.html)]
<script type="text/javascript">
location.domain='odkf.org';
// ...
</script>
RE: javascript error: permission denied
location.domain should be document.domain