Results 1 to 5 of 5

Thread: updateElement Documentation bug

  1. #1
    Ext User
    Join Date
    Mar 2007
    Posts
    17
    Vote Rating
    0
      0  

    Default updateElement Documentation bug

    Hi Jack

    I guess this is a bug in the documentation...

    url: http://www.jackslocum.com/deploy/yui...teManager.html

    <snip>
    updateElement<static>(String/HTMLElement/YAHOO.ext.Element el, String url, [String/Object params], [Object options]) : void UpdateManager
    <static> Static convenience method, Usage:

    YAHOO.ext.UpdateManager.update('my-div', 'stuff.php');
    </snip>

    As I can see usage should be:
    YAHOO.ext.UpdateManager.updateElement('my-div', 'stuff.php');

    furthermore it seems that the optional params aint optional :-)

    Regards:
    Jesper HorsMark

  2. #2
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    New York, NY
    Posts
    6,956
    Vote Rating
    20
      0  

    Default

    The doc error was fixed in svn. The optional problem is also corrected now.

  3. #3
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    New York, NY
    Posts
    6,956
    Vote Rating
    20
      0  

    Default

    One other note, a faster way to do the same thing:

    getEl('el-id').load('foo.php', 'param1=4');

    or with an object literal (see UM.update docs):

    getEl('el-id').load({url: 'foo.php', text: 'Loading Foo...'});

  4. #4
    Ext User
    Join Date
    Mar 2007
    Posts
    17
    Vote Rating
    0
      0  

    Default

    great !

    Btw is there a updatemanager functionality which can handle multiple calls to borderlayout

    problem:
    I need to update west, center, east and south with different urls and in the meantime i want to disable the borderlayout... (grayed out with an ontop message "Please wait loading data...")

    awesome work btw

    Regards
    HorsMark

  5. #5
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    New York, NY
    Posts
    6,956
    Vote Rating
    20
      0  

    Default

    Just overlay the body to disable it (the ydlg-mask class is from basic-dialog.css or yui-ext.css):

    var bd = getEl(document.body);
    var mask = bd.createChild({tag:'div', cls:'ydlg-mask'});
    mask.show();

    Then append a loading element above it:

    var loading= bd.createChild({tag:'div', cls:'your-loading-css-class', html:'Loading, please wait...'});


    your-loading-css-class will be a css class with (for example):
    position:absolute;
    left:47%;
    top:47%;
    background:white;
    border:2px solid #c3daf9;
    font:normal 13px verdana,tahoma,sans-serif;
    z-index:10001;

    If you looking the default load-indicator class, you can also pop in an animated gif css background image.

Similar Threads

  1. tree documentation
    By humpdi in forum Ext 1.x: Help & Discussion
    Replies: 12
    Last Post: 24 Apr 2007, 12:43 AM
  2. How to use documentation
    By humpdi in forum Ext 1.x: Help & Discussion
    Replies: 9
    Last Post: 16 Feb 2007, 7:34 AM
  3. Documentation TreePanel
    By rahulmca1@gmail.com in forum Ext 1.x: Help & Discussion
    Replies: 4
    Last Post: 5 Feb 2007, 7:03 AM
  4. Print all documentation
    By yogurtearl in forum Ext 1.x: Help & Discussion
    Replies: 0
    Last Post: 23 Jan 2007, 7:56 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •