eBook Scripts
javascript button event handlers

 
Home Design Tips Scripts Templates/Translations


JavaScript Button Event Handlers

 
John Dodson Content and ideas in this article, contributed by John Dodson of Microcreations.

"I got out of the Army after 10 years as a Military Policeman.  I spent the last 2 years in the Army teaching basic computer programs such as MS Office and making various web sites for the Army.  Since I got out, I have taught myself JavaScript and I am learning Python 2.2 in my spare time."
 

Overview

This script demonstrates one possible method of using JavaScript button events to control Activ Scripts linked of a form's buttons.


Requirements
Instructions
  1. In the <HEAD> section of one of your HTML files add the following code.

  2. In the <BODY> section include the following:

    This example opens Notepad from the e-book, but modifying the example could enable to other things.

  3. It is also possible to set up more than one button that does different things then they will have to do something like this:

  4. Editor's Note: Another method of implementing the same/similar functionality would be to use the METHOD= parameter of the <FORM> to run a script (similar to the example in the Help). Additionally instead of using window.location to run Activ Scripts, this could be done using window.external.ActivRun.

Notes
  1. This script has been tested with Activ E-Book Compiler versions 4.20, 4.21 and 4.22 (4.22 is the latest version at the time of writing). It is possible that changes might be required for e-books made with subsequent versions.

  2. This script will not work with versions of Activ E-Book Compiler prior to 4.20.






 

Home: eBook Code



Other Sites about eBooks

EBookApprentice.com
Learn about eBook publishing

EBookCompiler.com
Software to create your own eBooks

CoverFactory.com
Create eBook Covers with ease

EBookPower.com
Add multimedia to your eBooks

EBookFriends.com
Discuss eBooks

EBookInterviews.com
Read about other eBook authors' experiences

EBookSubmit.com
Learn about eBook marketing

EBookJungle.com
Searchable directory of eBooks



Related Links

Internet Marketing
 Learn Marketing
 Marketing Tactics

Promotion Links
 Email Marketing
 Increase Traffic
 Press Releases
 Search Engines
 SEO Downloads

Web Site Building
 Accept Credit Cards
 Affiliate Programs
 Domain Names
 Setup Internet Store
 Web Design Software
 Web Design Tutorial
 Web Hosting
 Webmaster Tools

 

 
Disclosure: Advertising Link(s): Our company may receive a payment if you purchase a product/service after following this link.

Disclosure: Our company's websites' content (including this website's content) includes advertisements for our own company's websites, products, and services, and for other organization's websites, products, and services. In the case of links to other organization's websites, our company may receive a payment, (1) if you purchase products or services, or (2) if you sign-up for third party offers, after following links from this website. Unless specifically otherwise stated, information about other organization's products and services, is based on information provided by that organization, the product/service vendor, and/or publicly available information - and should not be taken to mean that we have used the product/service in question. Additionally, our company's websites contain some adverts which we are paid to display, but whose content is not selected by us, such as Google AdSense ads. For more detailed information, please see Advertising/Endorsements Disclosures

About/Terms Of Use     Privacy     Site Map     Advertising/Endorsements Disclosures

Copyright © 2002-2009, Answers 2000 Limited