1. #1
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,520
    Vote Rating
    376
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default Ext.ux.MsgBus Plugin by Saki

    Ext.ux.MsgBus Plugin by Saki


    Hi all,

    I wrote (yet another) Message Bus plugin. See http://blog.extjs.eu/plugins/ext-ux-msgbus-plugin/ for details and let me know what do you think.

    Cheers,
    Saki
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  2. #2
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,520
    Vote Rating
    376
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    I've just uploaded the live demo of the plugin at http://examples.extjs.eu/?ex=msgbus

    Enjoy!
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  3. #3
    Sencha User
    Join Date
    Nov 2008
    Location
    Currently Mexico
    Posts
    133
    Vote Rating
    0
    jmariani is on a distinguished road

      0  

    Default publish on a button

    publish on a button


    Hi. Have this code (a form button). The form has plugins: ['msgbus']. Once I click the button, the data is saved and then... nothing happens. Even the form.reset() doesn't executes. Any ideas?

    Code:
                        buttons:[{ 
                                text: 'Grabar',
                                formBind: true,
                                iconCls: 'database_save',
                                scope: this,     
                                // Function that fires when user clicks the button 
                                handler:function(){
                                    var thisForm = Ext.getCmp('frmAppMenu');
                                    thisForm.getForm().submit({ 
                                        method:'POST', 
                                        success:function(form, action){
                                            form.publish('bdApp.db.recordInsert', 'appMenu');
                                            form.reset();
                                        },

  4. #4
    Sencha Premium Member
    Join Date
    Jun 2008
    Posts
    322
    Vote Rating
    4
    Scorpie is on a distinguished road

      0  

    Default


    Quote Originally Posted by jmariani View Post
    Hi. Have this code (a form button). The form has plugins: ['msgbus']. Once I click the button, the data is saved and then... nothing happens. Even the form.reset() doesn't executes. Any ideas?

    Code:
                        buttons:[{ 
                                text: 'Grabar',
                                formBind: true,
                                iconCls: 'database_save',
                                scope: this,     
                                // Function that fires when user clicks the button 
                                handler:function(){
                                    var thisForm = Ext.getCmp('frmAppMenu');
                                    thisForm.getForm().submit({ 
                                        method:'POST', 
                                        success:function(form, action){
                                            form.publish('bdApp.db.recordInsert', 'appMenu');
                                            form.reset();
                                        },
    Try to debug form. I think you need to have thisForm instead of form.
    I`m from Holland!

  5. #5
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,520
    Vote Rating
    376
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    Does the success callback execute at all? Set a breakpoint there.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  6. #6
    Sencha User
    Join Date
    Nov 2008
    Location
    Currently Mexico
    Posts
    133
    Vote Rating
    0
    jmariani is on a distinguished road

      0  

    Default


    Yes, it does execute.
    Adding an explicit form variable (var thisForm...) does the trick, but I don't think is an elegant way to do it.

    Code:
    handler:function(){
                                    var thisForm = Ext.getCmp('frmAppMenu');
                                    thisForm.getForm().submit({ 
                                        method:'POST', 
                                        success:function(form, action){
                                            thisForm.publish('bdApp.db.recordInsert', 'appMenu');
                                            form.reset();
                                        },

  7. #7
    Sencha User
    Join Date
    Nov 2008
    Location
    Currently Mexico
    Posts
    133
    Vote Rating
    0
    jmariani is on a distinguished road

      0  

    Default


    I mean, how do I get the PanelForm containing the button without explicity getCmping it by name?

  8. #8
    Ext User tonedeaf's Avatar
    Join Date
    Dec 2007
    Posts
    137
    Vote Rating
    1
    tonedeaf is on a distinguished road

      0  

    Default


    Quote Originally Posted by jmariani View Post
    I mean, how do I get the PanelForm containing the button without explicity getCmping it by name?
    Go the other route: Create a ref: for the button, run the button handler in the scope of the PanelForm and access the button from the PanelForm using a dot.
    More details here: http://www.vinylfox.com/the-hottest-...r-heard-about/

  9. #9
    Sencha User
    Join Date
    Nov 2008
    Location
    Currently Mexico
    Posts
    133
    Vote Rating
    0
    jmariani is on a distinguished road

      0  

    Default


    I'll try. Also, I'll try adding the plugin to the button directly instead of the form.

  10. #10
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,520
    Vote Rating
    376
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    Quote Originally Posted by tonedeaf View Post
    Go the other route: Create a ref: for the button, run the button handler in the scope of the PanelForm and access the button from the PanelForm using a dot.
    More details here: http://www.vinylfox.com/the-hottest-...r-heard-about/

    Yes, this is the way.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


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