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 
How to access toolbar elements from Javascript

 
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 8:45 am    Post subject: How to access toolbar elements from Javascript Reply with quote

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

PostPosted: Tue Aug 29, 2006 9:58 am    Post subject: Reply with quote

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
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