|
|
| Author |
Message |
Webmaster
Joined: 29 Aug 2006
Posts: 48
|
Posted: Tue Aug 29, 2006 9:21 am Post subject: Is it possible to store data that can be changed by a user |
|
|
if it is possible to store items of data that can be changed by the used at any time within the toolbar application/software.
e.g. when the toolbar is installed the customer may input a local town but
may at a later date wish to change this value.
Can the value of the town entered be used in links within the toolbar? |
|
| Back to top |
|
 |
Admin Site Admin
Joined: 22 Aug 2006
Posts: 1055
|
Posted: Tue Aug 29, 2006 10:27 am Post subject: |
|
|
You can store/change any data in toolbar and use it later. You can use
this java-script to perform it :
To set variable:
<SCRIPT language="JavaScript">
function ToolBarInit(tool)
{
tool.Var(1)="aaa";
}
</SCRIPT>
To view it:
<SCRIPT language="JavaScript">
var MyTool = null;
function ToolBarInit(tool)
{
document.all.obj1.innerHTML="var1= "+tool.Var(1);
}
</SCRIPT>
<body>
<center><b>VIEW VAR1</b></center>
<div id="obj1" name="obj1"></div>
</body>
Use %VarN in toolbar items propertyes (such as "caption"/"URL" etc.)
to work with these variables (N - number from 1 to 10). |
|
| Back to top |
|
 |
|