Results 1 to 2 of 2

Thread: Ext.Toolbar IE error

  1. #1

    Default Ext.Toolbar IE error

    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?

  2. #2
    Sencha User
    Join Date
    Mar 2007
    Posts
    7,854

    Default

    Did you check for extra commas? Can you run the menu example? Have you downloaded the 1.0.1a zip?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •