1. #1
    Sencha User
    Join Date
    Feb 2008
    Location
    HCM, VietNam
    Posts
    23
    Vote Rating
    0
    spidermanit is on a distinguished road

      0  

    Default Dynamic content in TabPanel.

    Dynamic content in TabPanel.


    Hi all,
    I have a TabPanel, when I add new a tab, and add the content to new tab by "autoLoad" property.
    Code:
    			tab = new Ext.Panel( {
    				id : 'ABC',
    				title: 'ABC',
    				closable : true,
    				autoLoad: {url: 'module/ABC.html'},
    				layout : 'fit'
    			});
    			tabPanel.add(tab);
    My question is: It's possible if ABC.html have some javascript, such as:
    HTML Code:
    <script type="text/javascript">
    	alert('This is ABC file');
    </script>
    
    <h1>SpiderMan</h1>
    SpiderMan text is show on new tab very well, but alert function not perform. Please show my how to perform it.
    Thanks so much.!

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,251
    Vote Rating
    73
    Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold Condor is a splendid one to behold

      0  

    Default


    Use:

    Code:
    autoLoad: {url: 'module/ABC.html', scripts: true},

  3. #3
    Sencha User
    Join Date
    Feb 2008
    Location
    HCM, VietNam
    Posts
    23
    Vote Rating
    0
    spidermanit is on a distinguished road

      0  

    Default


    oohh...many thanks Condor. thanks a lot.

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar