You will want to add a variable to each .js file, indicating the version. The csinfo.js file would have the value where 'currentVersion=1;' and 'latestVersion = 1;'.
In your ebook page, you put both calls for the js files, one after the other. First the local file, then call the website .js file.
The local file establishes the installed or last update version. We called it 'currentVersion=1;'. The information you want to update is kept in variables as well (like, 'currentGreeting ="Hi!" ', or whatever).
So, you read the local .js file, then the website .js file.... The beauty is, if the script can't see the .js file because you're not online, or you forgot to upload it, it won't throw an error. . . neat.
Anyway, the second .js file tells you that the 'latestVersion = 2'. The contents contains values ('latestGreeting ="Happy Holidays!",' or whatever) with new information.
....and then you write those values, including the new currentVersion and latestVersion values, into your local js file, as I did in the demo....
Next time you start up, if there are no updates, the version numbers will match, and your ebook will read and use the local information. If they are not online, it will use the local information as well, updated the last time they went online.
If you look at the demo, you might find the point where the file is written. You'll want to copy that, and paste it, implementing it right after the part that does the variable update. You'll also have to include that .as file that does the writing itself.
I can look at it if you're still having trouble finding that line of script. I'll try to get to it asap, but I'm a bit swamped - I'm trying to 'whip out' a free, advertising-driven site (I hope), with a ton of articles and ebooks I've collected in these past years;http://www.800tip.com. Might be something there to inspire an ebook subject.
It's taken me over a week now to 'whip it out', and I am way tardy on eveything else , but I'll help where I can.
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.
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
constitutes consent for this. For details, please see Privacy.
Click privacy for information about our company's privacy, data collection and data retention policies, and your rights.