1. #1
    Sencha User dekely's Avatar
    Join Date
    Aug 2008
    Posts
    215
    Vote Rating
    3
    dekely is on a distinguished road

      0  

    Default TabPanel problem - load html page with javascript

    TabPanel problem - load html page with javascript


    Hi,

    I'm trying to load html into a tab where the html page contins javascript content.
    the problem is that the javascript is not invoked.
    any ideas?

    Code:
    Ext.onReady(
    
    function(){
    var
    tabs = new Ext.TabPanel({
    renderTo: 'main', width:450, activeTab: 0, frame: true, height: 100, items:[ { title: 'Tab 1', autoLoad:'calc.html' }, { title: 'Tab 2', autoLoad:'tabContent.html' } ] });
    });



    Code:
     
    <HTML>
     
    
    <head>
    <script language="JavaScript" type="text/javascript"> function fun()
    { alert('hi'); } </script> </head>
    <body onload="fun();">
    <script language="JavaScript" type="text/javascript"> alert('hi');
    </script> </body>
    </HTML>
    Best regards,
    Dekel.y
    http://www.puzzlescramble.com

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    83
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    Use:
    Code:
    autoLoad: {url: 'calc.html', scripts: true}

  3. #3
    Sencha User dekely's Avatar
    Join Date
    Aug 2008
    Posts
    215
    Vote Rating
    3
    dekely is on a distinguished road

      0  

    Default


    Thanks
    Best regards,
    Dekel.y
    http://www.puzzlescramble.com

Thread Participants: 1