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

Activ-Variables & JavaScript

TSEROOGY Using JavaScript, I have assigned several Predefined Activ-Variables to variables within the script, and wish to assemble them in an escaped string for passing them to an ASP page through the URL.

I've been unsuccessful, receiving errors whenever the page is run from Activ-Ebook. The preprocessor has been activated for the associated page.

Following is a simple sample of what I'm trying to accomplish. I have included the Active-Variables only, as these seem to be the trouble makers.

I've set an "alert" to view the processed script. This has been unsuccesful. Activ-EBook's MESSAGEBOX method has also been unsuccessful.

Any help is appreciated.


<script language=JavaScript>
var eTitle = [={title}];
var eEsbn = [={esbn}];
var eBookInfo;

eBookInfo = eTitle + eEsbn;
eBookInfo = escape(eBookInfo);



<body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#800080" alink="#FF0000">

<p>... Type content here!</p>

<p><small>Created on ... September 30, 2003</small></p>

(Edited by TSEROOGY at 11:16 am on Oct. 1, 2003)

(Edited by TSEROOGY at 11:17 am on Oct. 1, 2003)

Posted on: 4:14 am on October 1, 2003
GuidingLight Try this:-)

<script language=JavaScript>
var eTitle = "[={title}]";
var eEsbn = "[={esbn}]";
var eBookInfo;

eBookInfo = eTitle + eEsbn;
eBookInfo = escape(eBookInfo);


(Edited by GuidingLight at 2:53 pm on Oct. 1, 2003)

Posted on: 2:10 pm on October 1, 2003
TSEROOGY Okay - I think I'll give up while I'm ahead :-)

I did as told GuidingLight and it worked out fine. Thanks.

Needless to say, the variables needed to be treated as string variables, thus the quote marks.

My frustration lies in that this was exactly what I did on my first three attempts. The error message I received on all occassions was that the Debugger was looking for ';' right after the assigning '=' or equals sign.

That's when I tried using the Activ-Variables without the quote marks!

I must have had something messed up, somewhere. But my head's cleared now and I thank you again, GuidingLight.

Best regards,

Posted on: 6:06 pm on October 1, 2003

List All Archived Forums

Copyright © 2000-2018, 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.

Click privacy for information about our company's privacy, data collection and data retention policies, and your rights.

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