|
|
| Author |
Message |
mgamache
Joined: 29 Sep 2007
Posts: 10
|
Posted: Mon Oct 01, 2007 11:27 am Post subject: Javascript /Macro variable access to main window |
|
|
| 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
|
Posted: Tue Oct 02, 2007 9:54 am Post subject: |
|
|
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
|
Posted: Tue Oct 02, 2007 7:11 pm Post subject: thanks |
|
|
| Thanks for the help that worked. |
|
| Back to top |
|
 |
|