1. #1
    Ext User tidal's Avatar
    Join Date
    Apr 2007
    Location
    Berlin / Germany
    Posts
    50
    Vote Rating
    0
    tidal is on a distinguished road

      0  

    Lightbulb Ext.ux.Plugin.RemoteComponent New Version 0.3.0 is there!

    Ext.ux.Plugin.RemoteComponent New Version 0.3.0 is there!


    New version 0.3.0 is there!
    for now take a look here



    Hi Guys!

    I created a RemoteComponent - Plugin for Ext 2.0.
    The Plugin loads Component configurations from a remote / AJAX source,
    creates the Components and populates them in the (plugin`s) container-body (items).

    There are two versions of the Plugin:
    - the lightweight Ext.ux.Plugin.LiteRemoteComponent class
    - the more configurable Ext.ux.Plugin.RemoteComponent which extends Ext.util.Observable.

    link to RemoteComponent-Demo.

    Where to use:

    You can use the plugin with any Component with
    plugin ability - this is Ext.Container, Ext.Toolbar
    and every Component derived from both of them.
    For example: TabPanel, Tip, Window, FieldSet, FormPanel,
    GridPanel, TreePanel, PagingToolbar, etc.


    What to use for?

    This is a very small but powerfull plugin. use it for:
    - lazy loading of components
    - provide different views of components per request
    - remote Forms
    - cascade component views based on server side authentification
    - testing of component configuration. Don
    Attached Files
    Last edited by tidal; 4 Aug 2008 at 7:57 AM. Reason: new version 0.3.0

  2. #2
    Ext User tidal's Avatar
    Join Date
    Apr 2007
    Location
    Berlin / Germany
    Posts
    50
    Vote Rating
    0
    tidal is on a distinguished road

      0  

    Default


    I have made a bugfix-release.
    See the attached zip-file for
    Ext.ux.Plugin.RemoteComponent v .0.2.1

    * v 0.2.1 / Nov. 13 2007
    fixed bug: With config option "loadOn" the plugins AJAX request
    has been called every time the specified container
    Attached Files

  3. #3
    Ext User
    Join Date
    Jun 2007
    Posts
    19
    Vote Rating
    0
    Bryan is on a distinguished road

      0  

    Default Oooo.

    Oooo.


    Ooo, this is pretty slick. I was experimenting with a mechanism to show/hide parts of my application based upon a user's login. I think this will fit in nicely.

  4. #4
    Sencha User george.antoniadis's Avatar
    Join Date
    Jul 2007
    Posts
    107
    Vote Rating
    1
    george.antoniadis is on a distinguished road

      0  

    Default


    owh this is soooo pretty *drool* :D

    Code:
        var vp = new Ext.Container({
            plugins: new Ext.ux.Plugin.RemoteComponent({
                url : "data/vp-test.json"
            })    
        });
    you can load from viewports...
    Code:
    {
        xtype:"viewport",
        layout:"border",
        items:[{
            region:"center",
            title:"test",
            plugins: new Ext.ux.Plugin.LiteRemoteComponent({ url : 'data/tp-test-json.json' })
          },{
            region:"west",
            width:250,
            split:true,
            collapsible:true,
            titleCollapse:true,
            title:"test",
            html:"Test"
          }]
    }
    to modal windows with tabs...
    Code:
    {
        xtype:'window',
        id: 'test',
        layout:'fit',
        width:500,
        height:300,
        closeAction:'hide',
        plain: true,
        modal:true,
        plugins: new Ext.ux.Plugin.LiteRemoteComponent({ url : 'data/tp-test-json.json' }),
        
        buttons: [{
            text:'click me',
            listeners: {
                click: function(){ alert('test'); }
            }
        }]
    }
    just by changing the config via json :D
    I REALLY start to like this thingie! ^_^

    Great work mate :D
    Thanks for sharing this with the rest of us :)

  5. #5
    Ext User tidal's Avatar
    Join Date
    Apr 2007
    Location
    Berlin / Germany
    Posts
    50
    Vote Rating
    0
    tidal is on a distinguished road

      0  

    Default


    well, i think 95% of the applause goes to the Ext2.0 developers
    for creating such a mature framework(I just took a deep look in
    the documentation).
    I have been really surprised how less code you need to get this
    functionality

  6. #6
    Ext User
    Join Date
    Apr 2007
    Posts
    36
    Vote Rating
    0
    architect is on a distinguished road

      0  

    Default Loading indicator question

    Loading indicator question


    @tidal

    Is it possible to add a loading indicator when loading remote component?

    Thanks

  7. #7
    Sencha User george.antoniadis's Avatar
    Join Date
    Jul 2007
    Posts
    107
    Vote Rating
    1
    george.antoniadis is on a distinguished road

      0  

    Default


    The remote components are loaded via an Ajax call.
    just create a load mask and destroy it on success/failure.

  8. #8
    Ext User
    Join Date
    Apr 2007
    Posts
    36
    Vote Rating
    0
    architect is on a distinguished road

      0  

    Default


    I agree on the principle, but should be part (included) of the plugin or not?

  9. #9
    Sencha User george.antoniadis's Avatar
    Join Date
    Jul 2007
    Posts
    107
    Vote Rating
    1
    george.antoniadis is on a distinguished road

      0  

    Default


    I'd say part of the config?

  10. #10
    Ext User tidal's Avatar
    Join Date
    Apr 2007
    Location
    Berlin / Germany
    Posts
    50
    Vote Rating
    0
    tidal is on a distinguished road

      0  

    Default


    @architect + george.antoniadis:

    In this version (0.2.1) the config is passed directly to the underlying
    Ext.Ajax.request(); The only option that is overridden is the success callback.
    In the next version a callback config will be stored and called afterwards.
    (There are a few more options to come. For example to override deeply nested
    objects/attributes
    of the remote config to provide user/custom views.
    Plus error-handling will be improved [There is none yet ])

    I
    Last edited by tidal; 12 Dec 2007 at 9:11 AM. Reason: +

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