Results 1 to 4 of 4

Thread: Element?HTML?????????JS????????????

  1. #1
    yossy_('-')
    Guest

    Default Element?HTML?????????JS????????????

    ???????

    ?????? Element ???? HTML ? load ??????????????
    ?????????????? load ?? HTML ?????????

    ???????
    Code:
    <html>
    <head>
    <title>test</title>
    <link href="lib/ext/resources/css/ext-all.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="lib/ext/adapter/ext/ext-base.js"></script>
    <script type="text/javascript" src="lib/ext/ext-all.js"></script>
    <script type="text/javascript">
        Ext.onReady(function() {
            var menu1 = new Ext.Action({
                text: 'Menu1',
                handler: function() {
                    Ext.get('main').load({
                        url: 'test.html',
                        scripts: true,
                        nocache: true
                    });
                }
            });
    
            var menu2 = new Ext.Action({
                text: 'Menu2',
                handler: function() {
                    Ext.get('main').load({
                        url: 'test2.html',
                        scripts: true,
                        nocache: true
                    });
                }
            });
    
            var panel = new Ext.Panel({
                title: 'TEST',
                width:600,
                height:300,
                tbar:[ menu1, menu2 ],
                html: '<div id="main"></div>',
                renderTo: 'contents'
            });
        });
    </script>
    </head>
    <body>
    <div id="contents"></div>
    </body>
    </html>
    load ?? HTML ?????
    Code:
    <script type="text/javascript" src="js/sample.js"></script>
    ???? Javascript ????????????????????????? HTML ????????
    ??????? Javascript ????? <HEAD> ??????????????

    load ?? HTML ?????????????????????? Javascript ??????????
    ?????????????????????

    ???????????

  2. #2
    Sencha - Support Team yuki's Avatar
    Join Date
    Jun 2007
    Location
    Chigasaki, Japan
    Posts
    273

    Default Element.getUpdater??????

    Quote Originally Posted by yossy_('-') View Post
    ???? Javascript ????????????????????????? HTML ????????
    ??????? Javascript ????? <HEAD> ??????????????

    load ?? HTML ?????????????????????? Javascript ??????????
    ?????????????????????
    ????????????????????????????????????????????

    • HEAD????SCRIPT?????
      DOM???????????????????JS????????????????????

      Code:
      Ext.select('script[src=?????]').remove()
      ?????DOM???????????
    • ?????JS????????????????
      ?????????????????????????????????????????????

      Code:
      delete ???
      ?OK???


    ????????????????????Element??getUpdater?????????????Element.load?????Updater?update?????????????????Ext.Updater???????????beforeupdate?update????????????????????????????????????
    Ext Japan, LLC [Twitter: @extjapan]
    [Ext JS / Ext GWT????????][????????????][Ext JS???????????????]

  3. #3
    yossy_('-')
    Guest

    Default

    ?????

    ????????????
    ??????????????????

    [email protected]??????????
    Code:
    Ext.select('script[@src=?????]').remove();
    ????????????

  4. #4
    Sencha - Support Team yuki's Avatar
    Join Date
    Jun 2007
    Location
    Chigasaki, Japan
    Posts
    273

    Default ????

    ??????

    Quote Originally Posted by yossy_('-') View Post
    @????????????????????
    Ext Japan, LLC [Twitter: @extjapan]
    [Ext JS / Ext GWT????????][????????????][Ext JS???????????????]

Posting Permissions

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