1. #1
    Ext User
    Join Date
    Mar 2008
    Posts
    9
    Vote Rating
    0
    mudittuli is on a distinguished road

      0  

    Default Function constructor Security Violition in Combobox

    Function constructor Security Violition in Combobox


    Hi, I am rendering a combo box in application sandbox and I am getting the following error, I get this error when i click on the drop-down in the combobox.

    Adobe AIR runtime security violation for JavaScript code in the application security sandbox (Function constructor)

    I tried this combobox example

    Code:
    Ext.onReady(function() {
    	
    	var store = new Ext.data.SimpleStore({
            fields: ['abbr', 'state', 'nick'],
            data : App.staticdata.states 
        });
        var combo = new Ext.form.ComboBox({
            store: store,
            displayField:'state',
            typeAhead: true,
            mode: 'local',
            triggerAction: 'all',
            emptyText:'Select a state...',
            selectOnFocus:true,
            applyTo: 'local-states'
        });
    });
    Help Please !

    Mudit

  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,971
    Vote Rating
    132
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    http://extjs.com/forum/showthread.php?t=26593


    Also read the readme in the air dir. You have do define a template for the combobox before the onReady block

  3. #3
    Ext User
    Join Date
    Mar 2008
    Posts
    9
    Vote Rating
    0
    mudittuli is on a distinguished road

      0  

    Default


    Thanks friend ,
    You made my day Today .

Thread Participants: 1