• If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Announcement

Collapse
No announcement yet.

[HELPED]calling another aplication

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [HELPED]calling another aplication

    Hi...

    Need some helps here...

    i have 2 application Chart, said : Chart1, Chart2

    now Chart1 already open ..
    i can open Chart2 from Chart1 with this: Valence.tab.launchTab(1142)

    What i like to ask is :

    How i can put timer on this? like i want Chart2 open after 1 minutes Chart1 running.

    i try this :

    var taskChart2 = {
    run: function(){
    Valence.tab.launchTab(1142);
    },
    interval: 60000
    }
    Ext.TaskMgr.start(taskChart2);

    it not wait for 1 minutes to open Chart2.... it's just need 3 second to open Chart2.

    any clue how to do 1 minutes and Open Chart2?

    Thx

  • #2
    You could just use setTimeout...

    Code:
    setTimeout(function(){
        Valence.tab.launchTab(1142);
    }, 60000);

    If you're doing more than showing the chart and care about scope
    Code:
    var showChart = Ext.bind(function(){
        Valence.tab.launchTab(1142);
        this.myMethod();
    },this);
    
    setTimeout(showChart, 60000);

    Comment


    • #3
      Hi. Thx for the reply

      i try this :

      setTimeout(function(){
      Valence.tab.launchTab(1142);
      }, 60000);

      it work greats....
      thx

      Comment

      Working...
      X