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 
Setting variables and properties at browser start

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



Joined: 23 Mar 2010
Posts: 2

PostPosted: Tue Mar 23, 2010 1:29 pm    Post subject: Setting variables and properties at browser start Reply with quote

Hi,

I am trying to set the state of some variables along with some properties at browser startup. For this I added the following code to the Global Code Space:

tool.Var(3)="unpaused";
tool.SetPropertyById("tbs_button_027849","caption","Pause recording");
tool.SetPropertyById("tbs_button_027849","image","pause.png");

Unfortunately this doesn't seem to work. What am I doing wrong ?

Lars
Back to top
Admin
Site Admin


Joined: 22 Aug 2006
Posts: 1055

PostPosted: Wed Mar 24, 2010 5:38 am    Post subject: Reply with quote

There is no Tool object in Global Area, you can try to use ToolbarControl instead.
Back to top
Demosthenes



Joined: 23 Mar 2010
Posts: 2

PostPosted: Wed Mar 24, 2010 11:53 am    Post subject: Reply with quote

Thank you for this, but this means that in return I cannot access the toolbarcontrol object from within a banner, or am I wrong ?

So:

var MyTool=null;
function DocumentComplete(tool)
{
MyTool=tool;

if (ToolbarControl.Var(3) !== "paused")

{
//code goes here ...
}

won't work ...


D.
Back to top
Admin
Site Admin


Joined: 22 Aug 2006
Posts: 1055

PostPosted: Thu Mar 25, 2010 5:53 am    Post subject: Reply with quote

No, you can also put the code into afer_install.html then, using tool object
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