PDA

View Full Version : Ext.Toolbar IE error



phil
3 May 2007, 6:23 PM
Receive an unknown runtime error in internet explorer IE 6 and 7 (fine in Firefox) when creating an Ext.Toolbar object, eg (partial code)
Ext JS Library 1.0.1
--
Ext.onReady(function(){

Ext.QuickTips.init();
var tb = new Ext.Toolbar('toolbar');
// add toolbar buttons later
// handler function defined elsewhere
});

--
.. and/or:
--

// handler function defined elsewhere

Ext.onReady(function(){

var tb = {
init : function(){


// alert('toolbar init');
var toolbar = new Ext.Toolbar('toolbar');
toolbar.add(
new Ext.Toolbar.Button({
text: 'New',
handler: tbButtonClick0,
cls: 'x-btn-text-icon',
icon: '/path/to/image.png',
tooltip: '<b>Quick Tip</b><br/>New<br>'
})
);

Ext.QuickTips.init();
tb.init();
});
--

I suspect I am adding things to onReady that should be defined elsewhere, or in a different order. Any suggestions?

tryanDLS
3 May 2007, 6:38 PM
Did you check for extra commas? Can you run the menu example? Have you downloaded the 1.0.1a zip?