1. #21
    Sencha User mberrie's Avatar
    Join Date
    Feb 2011
    Location
    Bangkok, Thailand
    Posts
    506
    Answers
    26
    Vote Rating
    14
    mberrie will become famous soon enough mberrie will become famous soon enough

      0  

    Default


    You said you want to call loadImages() from somewhere in your code (I think your words were 'from a different file').

    loadImages is a method of your PlotPanel class (correct?).

    In order to call loadImages you need to call it on a specific *instance* of the PlotPanel class.


    Now what you tried to do first was to create a new *instance* of PlotPanel and then call loadImages
    Code:
    var a = Ext.create('GraphPanel', {});
    a.loadImages(url);
    I tried to explain why that doesn't make much sense! (see my previous post)


    I *think* that you rather wanted to call loadImages to load images into your *existing* panel on the page.
    In a previous code snippet you had assigned the id 'plotPanel' to your panel instance.

    If this is still the case, you can fetch this *instance* with Ext.getCmp('plotPanel').

    Code:
    Ext.create('Ext.window.Window', {
      id: 'myWindow',
      title: 'Gotcha!',
      width: 200,
      // ...
    });
    
    // anywhere else on that page, but AFTER the window has been created (and probably rendered)
    var window = Ext.getCmp('myWindow');
    console.log(window.title); // says 'Gotcha!'

    Of course I might be a bit confused about your panels' names and class names (plotPanel, graphPanel, etc).

    But I hope it makes sense to you.

  2. #22
    Sencha User
    Join Date
    Sep 2011
    Posts
    78
    Answers
    1
    Vote Rating
    0
    new2extjs is on a distinguished road

      0  

    Default


    Ya I am trying to call the function from a different file. Do I have to make change while calling the function ?
    Code:
    var a = Ext.create('GraphPanel', {});
    a.loadImages(url);
    should i have to call by giving id of graphpanel?
    Ext.getComponent('graphpanel').loadImages(url);
    I am trying all ways but still no success :S

  3. #23
    Sencha User
    Join Date
    Sep 2011
    Posts
    78
    Answers
    1
    Vote Rating
    0
    new2extjs is on a distinguished road

      0  

    Default


    Now, I understand what you were trying to explain and my problem is solved

    Million thanks to you.

    You have been an inspiring and patient guide to an extjs newbie.

    May be God bless you !!!

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