I am trying to call an external javascript file into into my e-book and can't seem to get the syntax right.
If I use <SCRIPT src="dataFile.js"></script> and include the file in the e-book I have no problems. I need the file to be separate from the e-book, although still in the same directory.
I have excluded it from the e-book compilation but as I say I can't seem to get the syntax right for calling in the external file.
Have you tried putting the javascript file in a seperate directory and the using the "include" feature?
I used it for my e-book to call in common headers and footers for design purposes. There is no reason why you couldn't just enable and use it for one page.
To build an ebook that reads in an external .js file, using the configuration you described, try the [app] variable. It will insert the current book path in front of the filename:
Thanks Roger. That's perfect. I was sort of in the right area but wasn't getting the syntax right. Among other things I didn't have the square brackets in.
With any business, it is up to the individual owner of said business to ensure the success of the business. You may make more or less than any sample figures or results that might be quoted on our web sites or other publications. All business involves risk, and many businesses do not succeed. Further, Answers 2000 Limited does NOT represent that any particular individual or business is typical, or that any results or experiences achieved by any particular individual/business is necessarily typical.
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