This isn't something I've done in an ebook, but have in other forms.
Basically, what you are after is a database of sorts. Since you'll unlikely have an actual database to work from you are left with only two choices. First, you can use a text file to store the data. Second, you can use a cookie to store the data. If you are saving a very limited amount of information the cookie is something that might work.
I am new to ebooks and very new to scripts. I have written and ebook that I would like to personalize so that the reader is able to see their name as they read through the message. I have been reading and experimenting with the suggestions and help files on the subject of 'forms' and 'Active Scripts' and find myself in way over my head. I simply want to have my custormer start off by typing their name and when they hit 'submit' they are in the book with their personal name all through it. I have thought about looking for a professional to help me with this because I'm not sure I have the time, energy, or brain power to go through the learning curve. Any suggestions would be appreciated.
Activ E-Book is perfect for this kind of problem. It's built in Activ Script can be used for reading/writing text files. Using this ability you can capture a clients name and then store the name in an external text file on the clients computer.
The next time the eBook is opened, the clients name can be retrieved from the text file and display it on the pages you want.
This will work for any information you can store in a database or text file.
After the data is stored you will need to be able to retrieve the data the next time the eBook opens. Then you must write the code to display the clients name on the page.
To make matters worse, a lot of this code must be constructed in context with the pages it's going to be use on. That means just having the code "snippets" is not enough. You also must know how to place the code on the page to do what you want. In other words you need to be somewhat familiar with scripting languages and how they are used.
Here is a link to a zipped ebook project I did eons ago - the ebook reads and writes a file, and displays the variables; it doesn't use Activ's FileRead function, as FileRead reads in the entire contents in one long string, and you have to parse it, or use multiple files.
This is not necessary if you read in a .js file.
And, if I recall, the FileRead syntax is written into the script as well, commented out, but available to read in the demo file, to be helpful. I just didn't use it... I wrote to and read a .js file instead.
what you are after is a database of sorts. Since you'll unlikely have an actual database to work from you are left with only two choices. First, you can use a text file to store the data. Second, you can use a cookie to store the data ********************************** mystery shopping companies mystery shopping
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.