Hi Andrei, to integrate the script palette you need to copy the content of the script palette code over into the BrowserPane.htm file using a text editor.
Open up ScriptPalette.htm and select all the child content inside of its <body> tag, it will be one long <script> element that you will need to select. Then use Ctrl+C to copy that text to the clilpboard.
Then paste that <script> element into the BrowserPane.htm file, before the closing </body> tag there.
That will then make the script palette directly embedded in the browser pane. But the existing script palette code was meant to be used on a pop up dialog though and it includes code that closes the window that the menu items are on when it is clicked. You will want to remove that part since you will not want the main window to close when the menu items are clicked. To do that find the section of the script code that has onclick="moiWindow.endDialog(0);" and change it to say onclick="" or remove the whole onclick handler.
- Michael
|