SecurityError in JavaScript attempting to open file

2 posts, 0 answers
  1. Marbry
    Marbry avatar
    123 posts
    Member since:
    Aug 2012

    Posted 09 Dec 2014 Link to this post

    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.
  2. Vessy
    Admin
    Vessy avatar
    1380 posts

    Posted 12 Dec 2014 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top