Home Features Toolbar Library Forum Download Support Tutorial Manual
3. Reference
Triggers
OnBeginLoad
OnLoad
OnChange
OnActivate
OnSelect
OnFocus
OnKillFocus
OnRank
OnSave
Controls
Variables
System Variables
Global Values
Functions
Text Functions
  

OnSave Trigger

The OnSave trigger is activated just before the the toolbar XML is about to be saved to a locacl cache.


Syntax:

    OnSave="Function(); Function2(); ..."


Remarks:

  • Typically this function is used to update control values before the toolbar is saved, to remove value, search history etc.
  • This trigger is called before a Save() function executes.
  • If autosave is enabled, toolbar changes are saved automatically when the browser is closed, opened or when the toolbar tab is clicked. This will likewise activate the OnSave trigger.




Example:

    <xml id="toolbar">
    <toolbar caption="OnRank Example" autosave=1>
    <control type="edit" caption="Search: "
    onsave="SetValue(this,'')"></control>

    </toolbar>
    </xml>


    In the above example, the value of the edit control is cleared before it is saved.



Compatibility

    Requires ToolbarBrowser v2.4.6 and later.


See Also:

    Save() Function | autosave Parameter


Website Popularity Rank | Build Your Own Toolbar | Free Download | Custom Toolbars | Features | Contact Us

ToolbarBrowser is a freeware project supported by Trellian Limited. | Privacy Policy