|
|
| Author |
Message |
jnimeroff
Joined: 30 Oct 2006
Posts: 1
|
Posted: Wed Nov 15, 2006 8:47 pm Post subject: Passing info from the toolbar into the JS Launch function |
|
|
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
|
Posted: Fri Nov 17, 2006 10:28 am Post subject: |
|
|
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 |
|
 |
|