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,

    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
    Vessy avatar
    1893 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.


    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.

Back to Top