EXT js-javascript library

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SagarDoke
    New Member
    • Feb 2008
    • 24

    EXT js-javascript library

    i am using ext js - javascript library. i wrote a program using ext class. when i was executing it, it was giving error, that ext class is not found. then how can i set the path of ext class. or there is any other way to implement this js file?
  • gits
    Recognized Expert Moderator Expert
    • May 2007
    • 5390

    #2
    hi ...

    please post the code you have and how you have included the ext-lib.

    kind regards

    Comment

    • SagarDoke
      New Member
      • Feb 2008
      • 24

      #3
      Originally posted by gits
      hi ...

      please post the code you have and how you have included the ext-lib.

      kind regards
      [CODE=javascript]Ext.onReady(fun ction(){
      var win;
      var button = Ext.get('show-btn');

      button.on('clic k', function(){
      // create the window on the first click and reuse on subsequent clicks
      if(!win){
      win = new Ext.Window({
      el:'hello-win',
      layout:'fit',
      width:500,
      height:300,
      closeAction:'hi de',
      plain: true,

      items: new Ext.TabPanel({
      el: 'hello-tabs',
      autoTabs:true,
      activeTab:0,
      deferredRender: false,
      border:false
      }),

      buttons: [{
      text:'Submit',
      disabled:true
      },{
      text: 'Close',
      handler: function(){
      win.hide();
      }
      }]
      });
      }
      win.show(this);
      });
      });
      [/CODE]
      this is my code. when i clicked on button, then will not be executed. where can i put this file or how can i execute it?

      here, the code is to use open a dialog, implemented in html file

      [HTML]<div id="hello-win" class="x-hidden">
      <div class="x-window-header">Hello Dialog</div>
      <div id="hello-tabs">
      <!-- Auto create tab 1 -->
      <div class="x-tab" title="Hello World 1">
      <p>Hello...</p>
      </div>
      <!-- Auto create tab 2 -->
      <div class="x-tab" title="Hello World 2">
      <p>... World!</p>
      </div>
      </div>
      </div>[/HTML]
      Last edited by gits; Feb 14 '08, 02:53 PM. Reason: added code tags

      Comment

      • gits
        Recognized Expert Moderator Expert
        • May 2007
        • 5390

        #4
        did you include the ext.js in your html-page? something like:

        [HTML]<script type="text/javascript" src="ext.js"/>[/HTML]
        kind regards

        Comment

        Working...