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

SecurityError in JavaScript attempting to open file

1 Answer 101 Views
ImageEditor
This is a migrated thread and some comments may be shown as answers.
Marbry
Top achievements
Rank 1
Marbry asked on 09 Dec 2014, 06:31 PM
Setting the ImageURL, then I get an error  "0x800a139e - JavaScript runtime error: SecurityError"

On this line,
this._initialStateData=e.getImageData(0,0,this.get_width(),this.get_height());

Coming out of ScriptResource.axd.


If I select to continue when the error is thrown it will display the image.  But it throws the error again when I try to do anything like alter the brightness for instance.

1 Answer, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 12 Dec 2014, 09:07 AM
Hi Marbry,

I have already answered your other post on the subject, for convenience I will paste my answer here as well:

The experienced problem is caused by the fact that the ImageEditor is designed to work only with virtual paths to images placed inside its application root (under the same host). Once you configure the control's ImageUrl in the expected by the control way (e.g. "~/Images/image.png") the ImageEditor's dialogs will be loaded properly. Also, please note that the image must be located in a folder accessible from the application.

I hope this information will be helpful for you.


Regards,
Vessy
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
ImageEditor
Asked by
Marbry
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Share this question
or