eBook authors eBook Software - create and publish your own ebooks
Create your own eBooks
 
   
EBookApprentice.com
Learn How To Create, Publish & Market E-Books
 
   
EBookCompiler.com
E-Book Creation Software
 
   
EBookPower.com
Add sophisticated multimedia to your E-Books
 
   
CoverFactory.com
Create E-Book covers in minutes
 
 
  EBookSubmit.com
E-Book Marketing & Promotion made easy
 
  EBookJungle.com
Search engine for E-Books
 
  EBookInterviews.com
Interviews with eBook authors
 
  EBookEnhance.com
Tools for building better eBooks
 
 
 
Archived Message:

URGENT - Javascript question!


 
christinej Hi,

I'm building an ebook with Activ and would really like all of the pages to get updated automatically, so I don't have to update them manually all the time and tell customers that they need to download a newer version.

I assume that I might be able to do this with javascript. Obviously, I'm not too javascript-knowledgable.  

Can someone just give me a simple step-by-step idea of how I'd do it... or where I might find out how?

Has anyone else done this?

Please, someone help out here! You can email me directly at chriscafe@aol.com or post here.

Thanks SO much,

Christine J.


Posted on: 3:19 am on October 5, 2004
Alaska Christine -

 Not to worry - there are a lot of ways to do that.  These methods, however, require your users to be online everytime they open your ebook:

 1) easiest way: make all your page links directly to web pages you post on your site (unavailable to casual surfers).

 2) almost as easy: create pages for your ebook that redirect to your online pages.

 3) also easy: create your pages with most of the styling, but deliver the online content into iframes.  This will display a mix of ebook and online content.

 4) getting more interesting, and more fun; wrap your page content in javascript (easy enuff to do, you wrap each line in a 'document.write("markup stuff blah blah blah html markup stuff" )' and call that page section (from a .js file) where you need it in the page.  Now your control is more granular, from single words and images to entire pages.

 5) probably the preferred solution is to create javascript values for each item you know you'll want to maintain; for instance, your javascript file that you keep online, and that feeds your ebooks, might contain the following values:

 Big_LogoImage="http://www.yoursite.com/ebookcontent/images/latestLogo.gif";

 IntroParagraph="Welcome to our Real-Time eBook!  This ebook was last updated on ";

 This_Info_LastModifiedDate="October 5th, 2004";

 ListofProducts="Widgit 1<br>Widgit 2<br>Widgit 3<br>......";

 TableofPrices="<TABLE COLS=3><TR><TD>Product</TD><TD>List Price</TD><TD>Your Price</TD></TR><TR><TD>Widgit..."

Then, when a user opens your ebook, the fields within will fill with these values - found online in the .js file.  You could even write the updated information to a file on the users' machines, so that if they aren't online, they will still have the last updated information from the most recent online visit in their ebook.  Active provides for this, and I have a demo on how to do it; I've posted a zipped activ project with a form or two here:

http://www.copperfieldpub.com/dev/ActivForm.zip

It demos using a form to get information, and how to write and read a file.   It might suit your purposes - you wouldn't have to use the form part, just writing the local .js file, and reading back it in.

Hope this helps -


Posted on: 7:02 pm on October 5, 2004
christinej Thank you so much, Alaska, for your post.  Your detailed reply helps me more than you know.

I'm so happy there are kind people like you around for beginners like me.  

I look forward to trying your suggestions out.

Thanks again,

Christine


Posted on: 1:36 am on October 6, 2004

Go to Active Discussion Thread

Participate in Current/New Discussions

List All Archived Forums



Copyright © 2000-2015, Answers 2000 Limited.

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

Our sites use cookies, some of which may already be set on your computer. Use of our site constitutes consent for this. For details, please see Privacy.

Contact Us    About and Terms Of Use    Privacy    Advertising/Endorsements Disclosures