PDA

View Full Version : standalone combobox issue



vitolini
13 Dec 2010, 11:35 AM
I have a regular html form and i want to use ext combobox instead of regular html combobox (I don't want to switch the whole form to ext form for now), I created the component and added it but all I see is the expand button and nothing else; when i click the expand button; firebug gives me


a.dom.select is not a function
http://localhost:8080/gtmTrek/javaScript/ext-js/ext-all.js
Line 19here is my code in the page



Ext.onReady(function(){
Ext.BLANK_IMAGE_URL = 'javaScript/ext-js/resources/images/default/s.gif';
Ext.QuickTips.init();
});
Then later in the page



<tr><td colspan="4">
<div width="600" id="mappingSelector1">asd</div>
<script language="JavaScript">
var fieldsCombo = new Ext.form.ComboBox(
{
applyTo: 'mappingSelector1',
hiddenName : 'mapping1',
fieldLabel:'asd',
width: 250,
store: new Ext.data.ArrayStore({
fields : ['value', 'label'],
data : [
['Remove', 'Remove'],
['Keep Same', 'Keep Same'],
['FUNCTION','FUNCTION']
]
}),
displayField : 'label',
valueField : 'value',
typeAhead: true,
mode: 'local',
listWidth: 200,
forceSelection: true,
triggerAction: 'all',
selectOnFocus:true
});
</script>
</td></tr>