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:

Using an Activ Script statement


 
harv A very basic question - I've used this before
but have now forgotten.

If I want to use a statement in immediate mode such as

SET('foo',2+2)

what additional code or settings  must I add to
tell the compiler that this is an Activ statement
and not normal HTML text
(eg should it be enclosed within  script start/end statements)

Harvey

(Edited by harv at 8:07 am on Nov. 4, 2003)


(Edited by harv at 8:10 am on Nov. 4, 2003)

(Edited by harv at 8:27 am on Nov. 4, 2003)


Posted on: 11:31 am on November 3, 2003
harv To elaborate on my question above.

Take the example of a control statement

Suppose I want to show 'YES' or 'NO' in page1.htm of a
book depending on whether the month is January or not
using a control statement such as

IF({compilemonth}=1)
   set (var,"yes" )  
ELSE
   set (var,"no" )
ENDIF


Would I have to put this control statement in an ON
Start script, with var being a global type variable
which I then refer to in  page1.htm  ?

In other words I can't put the control statement
directly into page1.htm ?

Harvey


Posted on: 8:49 am on November 4, 2003
harv Here's another attempt to explain what I'm trying to
do.

It's quite simple.

Depending on the value of a rebranded field I want to
provide a link either to URL1 or URL 2 in the book.

It seems that I can only do the test in, for example, a
start script. I would then need to store the required
URL in a variable to be used later. But is there a concept of
such a (global) variable ?

Harvey


Posted on: 11:51 am on November 4, 2003
EBookCompiler Activ Variables are persistent. They last for as long as the ebook is running

What you want in HTML is something like

A HREF="#!myscript.as"

And myscript.as contains something like (this may have errors)

IF ( {var} == 1 )
SET('url','something')
ELSE
SET('url','somethingelse')
ENDIF
NAVIGATE('{url}')


Posted on: 7:04 pm on November 11, 2003
harv Sunil,

That is in fact how I eventually did it (using the OPEN statement)

Harvey


Posted on: 7:17 pm on November 11, 2003

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