|
|
| Author |
Message |
Webmaster
Joined: 29 Aug 2006
Posts: 48
|
Posted: Tue Aug 29, 2006 8:45 am Post subject: How to access toolbar elements from Javascript |
|
|
| If I am implementing a standalone Javascript file that is launched off of a button (following the example of the Launch function in the demos), how do I get to the different elements that I have added to the tool bar within the script? I have gotten the MainWindow context working properly within my script but I would like to be able to access two text fields on my toolbar (username_edit and password_edit) and use their values in my script. |
|
| Back to top |
|
 |
Admin Site Admin
Joined: 22 Aug 2006
Posts: 1055
|
Posted: Tue Aug 29, 2006 9:58 am Post subject: |
|
|
You need to use the following Launch function in Custom Script
function Launch(tool)
{
var c_val;
c_val=tool.GetPropertyById("tbs_combo_013736", "value");
MainWindow.document.parentWindow.alert(c_val);
} |
|
| Back to top |
|
 |
|