This Newsletter follows one just in the last few weeks but was inspired by someone having trouble with the lessons in one of my books related to trying to get the Microsoft Agents to work in the ToolBook HTML Product.
It was a rush job to solve the problem and modernize the lesson in question and to now use javascript functions to accomplish this. Testing indicates it’s working and is a good example of how we can use JavaScript as another programming language within ToolBook to take ToolBook well beyond what the Actions Editor gives us. The old way was to use the Display URL: javascript:showAgent()code in the Actions Editor where showAgent is a function in a Javascript file and required significant post-Export tweaks. The new way is to have the Javascript file “hooked” up to the tbk file and then have all the functions available to be called using the Execute Script action which is far more powerful and this method requires less post-Export tweaks to the HTML output. Additionally, using the new method, we can pass information out to the various functions using parameters.
