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.