tab.reload() not passing in updated param value!

  1. #1

    tab.reload() not passing in updated param value!

    I have the below - I am trying to do a tab.reload() - but when I do the ID param value from the hidden element is never updated - so I change a hdnClaimID value on the parent and then call tab.reload() but the querystring ID is never changed?

            function addTab(tab, val, num) {
                if (!tab.iframe) {
                    tab.load({ url: 'documents.aspx', mode: 'iframe', params: { 'Group': hdnClaimGroupID.getValue(), 'Type': num, 'ID': hdnClaimID.getValue()} });
                }
            }
    Last edited by Tbaseflug; Jul 25, 2011 at 9:19 PM.
  2. #2
    Hi,

    .reload() uses the .autoLoad config option.
    reload : function (nocache) {
        this.getAutoLoad().nocache = nocache || this.autoLoad.nocache;
        this.load(this.getAutoLoad());
    }
    Did you define .autoLoad? I guess no.

    You could use that .load() to reload a tab:
    tab.load({  url: 'documents.aspx', mode: 'iframe', params: { 'Group':  hdnClaimGroupID.getValue(), 'Type': num, 'ID': hdnClaimID.getValue()}  });

Similar Threads

  1. Replies: 2
    Last Post: Jan 16, 2012, 10:34 AM
  2. Replies: 6
    Last Post: Nov 17, 2011, 9:54 AM
  3. Tab - Autoload Param value?
    By Tbaseflug in forum 1.x Help
    Replies: 3
    Last Post: Jun 17, 2009, 4:02 PM
  4. How to set AutoLoad Param client side?
    By Tbaseflug in forum 1.x Help
    Replies: 0
    Last Post: Jun 08, 2009, 2:24 PM
  5. [CLOSED] How to reload TreeView after Ajax call has updated it...
    By iansriley in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Mar 23, 2009, 1:47 PM

Posting Permissions