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

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar