Results 1 to 3 of 3

Thread: TabPanel problem - load html page with javascript

  1. #1
    Sencha User dekely's Avatar
    Join Date
    Aug 2008
    Posts
    215
    Vote Rating
    3
      0  

    Default 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
    118
      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
      0  

    Default

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

Posting Permissions

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