1. #1
    Sencha User
    Join Date
    Dec 2010
    Posts
    21
    Vote Rating
    0
    Bouki is on a distinguished road

      0  

    Default Error: Adobe AIR runtime security violation with Ext.tree.TreePanel

    Error: Adobe AIR runtime security violation with Ext.tree.TreePanel


    Hi
    I am encountering an issue with treepanel on air
    My code is working as expected in a web browser, however in air this doesn't work
    I have this error :

    [app:/application.html#]Error: Adobe AIR runtime security violation for JavaScript code in the application security sandbox (eval)

    When looking at the line specified (4233), I found this :

    Code:
            doDecode = function(json){
                return eval("(" + json + ")");    
            },
    Is it normal ? If yes is there a way to correct that ?

    I thought extjs was free of eval() but I've found some in ext-all-debug (using version 3.3.1)

    Thanks

  2. #2
    Sencha User makana's Avatar
    Join Date
    Apr 2008
    Location
    Dresden, Germany
    Posts
    527
    Vote Rating
    19
    makana has a spectacular aura about makana has a spectacular aura about

      0  

    Default


    It's the Ext.util.JSON.decode method. Usually there are no issues with JSON encoding/decoding, even if it is done by an eval call.

    Please check your JSON for a correct syntax (or post it, if you are not sure). If nothing changed, try to set Ext.USE_NATIVE_JSON to true.

    makana
    Programming today is a race between software engineers striving to build bigger and better Ń–diot-proof programs, and the universe striving to produce bigger and better idiots. So far, the universe is winning. (Rick Cook)

    Enhanced ExtJS adapter for Adobe AIR

Similar Threads

  1. Replies: 1
    Last Post: 23 Dec 2010, 10:54 AM
  2. Replies: 7
    Last Post: 30 Dec 2009, 6:19 PM
  3. AIR runtime security violation with sandbox issu!! plz help me.
    By Erica in forum Ext.air for Adobe AIR
    Replies: 8
    Last Post: 20 Feb 2009, 3:23 PM

Thread Participants: 1