Besttoolbars Development network

Back to Besttoolbars main site

 

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Is it possible to store data that can be changed by a user

 
Post new topic   Reply to topic    BestToolbars.Net Forum Index -> General questions
Author Message
Webmaster



Joined: 29 Aug 2006
Posts: 48

PostPosted: Tue Aug 29, 2006 9:21 am    Post subject: Is it possible to store data that can be changed by a user Reply with quote

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

PostPosted: Tue Aug 29, 2006 10:27 am    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    BestToolbars.Net Forum Index -> General questions All times are GMT
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group

Copyright c Softomate, 2010. All Rights Reserved
Terms of Service | Privacy Policy