1. #1
    Sencha User
    Join Date
    Oct 2011
    Location
    Metz, France
    Posts
    60
    Vote Rating
    2
    iNes14 is on a distinguished road

      0  

    Default Unanswered: Possible to call a ExtJS element in a JavaScript function ?

    Unanswered: Possible to call a ExtJS element in a JavaScript function ?


    Hello,

    I explain : I want to open this window :

    Code:
    Ext.define("MyDesktop.***",{extend:"Ext.ux.desktop.Module",
    id:"***-win",init:function(){this.launcher={text:"***",
    handler:this.createWindow,scope:this}},createWindow:function(){
    var b=this.app.getDesktop();var a=b.getWindow("***-win");
    if(!a){a=b.createWindow({id:"***-win",title:"***",
    width:1100,height:200,animCollapse:false,border:false,constrainHeader:true,layout:"fit",
    html:'<iframe border="0" frameborder="0"  width="100%" height="100%" src="***.html"></iframe> '
    })}a.show();return a}});
    When I call my function javascript

    Code:
    function test(){
    // Here, I want to open ***-win
    }
    Do you know how I can do ? I must do like that because I have to open the window ***-win when I clicked
    on a img.

    Thank you

  2. #2
    Ext JS Premium Member
    Join Date
    Apr 2008
    Location
    Oslo
    Posts
    64
    Answers
    2
    Vote Rating
    0
    mikhailt is on a distinguished road

      0  

    Default


    ExtJS IS JavaScript.
    Sure you can call.

    Your code is bad formatted, but I guess the window your mention is an Ext.window.Window
    class exemplar.

    Then to show it just use show() method of the window object in your function. Just like mywindow.show();

  3. #3
    Sencha User
    Join Date
    Oct 2011
    Location
    Metz, France
    Posts
    60
    Vote Rating
    2
    iNes14 is on a distinguished road

      0  

    Default


    Yes, I have done that. I work with the desktop example.

    The probleme is : Firebug indicates that the ***-win is not defined

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