PDA

View Full Version : Function constructor Security Violition in Combobox



mudittuli
27 Mar 2008, 11:04 PM
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 (http://extjs.com/deploy/dev/examples/form/combos.html)



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

sven
28 Mar 2008, 12:48 AM
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

mudittuli
28 Mar 2008, 4:21 AM
Thanks friend :D ,
You made my day Today .