1. #1
    Sencha User Riaz's Avatar
    Join Date
    Sep 2010
    Location
    Sydney, Australia
    Posts
    183
    Vote Rating
    -1
    Riaz is an unknown quantity at this point

      0  

    Default How can I call?

    How can I call?


    I have following code.

    In jsEntryTimesheet.js
    Code:
     var x = new Ext.form.FormPanel({
    :
     });      
    
    
    Ext.reg("jsEntryTimesheet", x);
    And in jsTimeAndExpenses.js
    Code:
    btnTimesheet = new Ext.Button({
        ui:'round',
        text: 'Timesheet',
        flex: 1,
        handler: function () {
            // need to call "x of jsEntryTimesheet"
            
        }
    
    });
    
    How do I call x object which is in "jsEntryTimesheet.js", when I click on "Timesheet" button?

  2. #2
    Sencha User Riaz's Avatar
    Join Date
    Sep 2010
    Location
    Sydney, Australia
    Posts
    183
    Vote Rating
    -1
    Riaz is an unknown quantity at this point

      0  

    Default


    I have got a solution, but not sure whether it is correct way or not.


    In jsEntryTimesheet.js
    Code:
    var x = Ext.extend(Ext.Button, {
        text: 'Timesheet',
        handler: function () {
            new Ext.form.FormPanel({
             :      
           })
       }
    });
    
    Ext.reg("jsEntryTimesheet", x);

    And in jsTimeAndExpenses.js
    Code:
    TimeAndExpeses = Ext.extend(Ext.Panel, {
        title: 'Time and Expenses',
        iconCls: 'time',
        fullscreen: true,
        items: [{
            xtype: "fieldset",
            title: "Time and Expenses",
            items: [{
                xtype: 'jsEntryTimesheet'
            
            }]
        } ]
    });
    Hope, it will help somebody.

  3. #3
    jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,353
    Vote Rating
    79
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    Yes that works. The issue is that you need to be thinking outside the realm of "files" and think about JavaScript as a global pool.

Similar Threads

  1. How do I call?
    By Riaz in forum Sencha Touch 1.x: Q&A
    Replies: 2
    Last Post: 14 Sep 2011, 12:41 AM
  2. Could I create "Call" button that will cause Iphone to make a call?
    By lexer in forum Sencha Touch 1.x: Discussion
    Replies: 2
    Last Post: 12 Nov 2010, 8:11 AM
  3. Ext.get call
    By febus in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 31 Aug 2009, 2:20 PM
  4. Call Ext.extend function from FeedWindow.superclass.constructor.call
    By adelphus in forum Ext 2.x: Help & Discussion
    Replies: 17
    Last Post: 3 Jun 2008, 1:42 AM

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi