MadCap Flare for Programmers by Tregner Thomas & Owens David
Author:Tregner, Thomas & Owens, David
Language: eng
Format: epub
Tags: technical writing, online help
ISBN: 978-1-937434-26-7
Publisher: XML Press
Published: 2015-06-23T04:00:00+00:00
7.1.2. Connecting Toolbar functions to other actions
You can connect Toolbar functions to more than buttons. Toolbar JavaScript is just a means of defining a script to be included in the output. Remember that when we first added the “Hello World!” function to the Toolbar JavaScript, we didn’t wire it up to a button. You have other options. For example, if you add the code in Example 7.1 to the Toolbar JavaScript, it will add functionality to the search field that clears any text in the field when you press the escape key.
Example 7.1 – JavaScript to add keyup behavior for the search field
window.onload = function() { $("#search-field").keyup(function (e) { if (e.keyCode == 27) { $("#search-field").val(""); } }); }
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Asking the Right Questions: A Guide to Critical Thinking by M. Neil Browne & Stuart M. Keeley(5320)
Autoboyography by Christina Lauren(5064)
Dialogue by Robert McKee(4127)
Eat That Frog! by Brian Tracy(4101)
Sticky Fingers by Joe Hagan(3884)
Journeys Out of the Body by Robert Monroe(3427)
Annapurna by Maurice Herzog(3271)
Full Circle by Michael Palin(3244)
Elements of Style 2017 by Richard De A'Morelli(3216)
Schaum's Quick Guide to Writing Great Short Stories by Margaret Lucke(3161)
The Art of Dramatic Writing: Its Basis in the Creative Interpretation of Human Motives by Egri Lajos(2826)
The Diviners by Libba Bray(2779)
Why I Write by George Orwell(2743)
The Mental Game of Writing: How to Overcome Obstacles, Stay Creative and Productive, and Free Your Mind for Success by James Scott Bell(2742)
In Patagonia by Bruce Chatwin(2725)
Atlas Obscura by Joshua Foer(2678)
The Fight by Norman Mailer(2651)
Venice by Jan Morris(2402)
The Elements of Style by William Strunk and E. B. White(2357)
