This is a migrated thread and some comments may be shown as answers.

[Solved] Access is Denied RadEditor

1 Answer 153 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Platinum
Top achievements
Rank 1
Platinum asked on 21 May 2009, 02:05 AM
Hi,

I am recieving an Error Message in the RadEditor. I am using the RadEditor 7.3.2. The issue is as follows

I added a new command in the RadEditor ToolBar which will open a pop up window which allows the user to select certain items and based on the selection the data will  be populated back to the RadEditor window.

This Scenario works fine if  RadEditor Window and Popup window are in the same server domain

For Ex   RadEditor Window url domain - http://myserver1:1699 and the Pop up window url domain http://myserver1:1699/
 
If the domain is different , the access is denied message is thrown by the Javascript

For Ex   RadEditor Window url domain - http://myserver1:1699/ and the Pop up window url domain http://myserver2:1699/

Is there any way to solve this issue.

Kindly Advise



1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 25 May 2009, 12:44 PM
Hi Platinum,

The recommended approach is to use windows that are in the same domain to avoid the possibility of cross domain scripting problems.

Your scenario is not supported out-of-the box by RadEditor but you can try to implement a "streamer" page in the domain where the editor resides. This page will just request the page from the other domain and after that it will return its content like it is placed in the domain of RadEditor.

For example, the editor will reside on http://server1/editor.aspx. The dialog exists on server2 with url http://server2/dialog.aspx. The streamer page will be hosted on http://server1/dialog.aspx and it will returns the content of  http://server2/dialog.aspx. The browser will not know that and it will think that the whole content comes from http://server1. Once again please note that this workaround is not supported and you should try to implement it yourself.

Kind regards,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Editor
Asked by
Platinum
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or