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 
Javascript /Macro variable access to main window

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



Joined: 29 Sep 2007
Posts: 10

PostPosted: Mon Oct 01, 2007 11:27 am    Post subject: Javascript /Macro variable access to main window Reply with quote

I am trying to create a tool bar that will work with the currently selected text in the browser. I am using code from within a banner, but I am limited in the scripting I can do because of cross domain security issues. I know that the macros containing the info I need are available for launching URLs, but not via scripting. I need to get access to the URL,Selection and Title macro variables via script. Is that possible?
Back to top
Admin
Site Admin


Joined: 22 Aug 2006
Posts: 1055

PostPosted: Tue Oct 02, 2007 9:54 am    Post subject: Reply with quote

You can get URL, selection, title via scripting - please, use Custom Javascript feature and tool.url, or MainWindow.document.selection.createRange().text

etc..

Please, read Javascript Interface documentation from the Help menu

http://www.besttoolbars.net/CUST/ToolbarJavascriptInterface.pdf
Back to top
mgamache



Joined: 29 Sep 2007
Posts: 10

PostPosted: Tue Oct 02, 2007 7:11 pm    Post subject: thanks Reply with quote

Thanks for the help that worked.
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