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 
Passing info from the toolbar into the JS Launch function

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



Joined: 30 Oct 2006
Posts: 1

PostPosted: Wed Nov 15, 2006 8:47 pm    Post subject: Passing info from the toolbar into the JS Launch function Reply with quote

Greetings,

I am doing some things with SWITCHCOMMAND that change the URL that is being used to execute a search. Based on this value, I would like to be able to do some things before fetching the URL (executing the search).

How can I set a value dynamically within the toolbar functionality and then have the value readable in JS? I think I can go the other route and set a JS variable and have it visible in the toolbar using the %var1 construct.

Any ideas would be helpful.

Best,
Jeff
Back to top
Admin
Site Admin


Joined: 22 Aug 2006
Posts: 1055

PostPosted: Fri Nov 17, 2006 10:28 am    Post subject: Reply with quote

You can use GetPropertyById metod to get this value like:

<SCRIPT language="JavaScript">
var MyTool = null;
function ToolBarInit(tool)
{

alert("combo value = " + tool.GetPropertyById("tbs_combo_012664","value"));
}
</SCRIPT>
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