Hi,
i searched the forums, read the posts, tried the solutions suggested, but nothing seems to
work so this is the reason for this repost.
This is regarding the ComboBox selection issues in Adobe AIR,
The combo box renders ok, but i can't click any of the items, it wont select anything.
the code works fine in a regular browser.
Did i miss anything in the code below? or overlooked some detail?
however i tried everything and can't seem to get it to work.
Thanks
mo
Aptana 1.2.4
Adobe AIR 1.5
EXTJS 2.2
Code:
<html>
<head>
<title>Two security sandboxes sample</title>
<script type="text/javascript" src="lib/air/AIRAliases.js">
</script>
<link rel="stylesheet" type="text/css" href="lib/ext/resources/css/ext-all.css" />
<script type="text/javascript" src="lib/ext/adapter/ext/ext-base.js">
</script>
<script type="text/javascript" src="lib/ext/ext-all-debug.js">
</script>
<script type="text/javascript">
// AIR-related functions created by the developer
var tplNavigation = new Ext.XTemplate('<tpl for="."><div class="x-combo-list-item">{name}</div></tpl>');
// simple array store
var store = new Ext.data.SimpleStore({
fields: ['url', 'name'],
data: [["Main.html", "Main"], ["page1.html", "Pagee 1"], ["page2.html", "Page 2"], ["page3.html", "Page 3"]]
});
function CreateCombo(){
var comboNavigation = new Ext.form.ComboBox({
store: store,
tpl: tplNavigation,
displayField: 'name',
valueField: 'url',
typeAhead: true,
triggerAction: 'all',
renderTo: 'divCombo',
allowBlank: false,
selectOnFocus: true,
forceSelection: true,
mode: 'local',
listeners: {
"select": function(){
alert('test');
}
}
});
}
</script>
</head>
<body onload="CreateCombo()">
<div id="divCombo">
</div>
</body>
</html>