With my latest ebook project, I’m using frames. Also, there is not the standard toolbar/menu displayed in the ebook, which means all of the navigation/searches/TOC has to be done within separate frames.
The problem is that with an immediate Activ command like: <A HREF="##SEARCH()">Click Here</A>
Causes a new window with text input to open. The results display in the new window as well. In other words SEARCH() works, but not the way that is needed.
If the name of the frame is “content” adding it as a target to the command: <A HREF="##SEARCH()" target=”content”>Click Here</A>
The result is the same in that a new window is opened.
1) How can the “content” frame be target for the results to display?
After numerous attempts to set up a form/text input/submit for SEARCH(), I find myself completely at a loss in how to transfer the variable from the input field to the a variable for the Activ SEARCH command.
2) How can SEARCH() be set up so it will work within a form?
Another command that I’ve struggled with is the NEXT() and PREVIOUS(), which navigate through the contents list as it appears under Files in the Activ e-Book compiler.
3) How can NEXT() & PREVIOUS() be used in one frame to change the page in another frame?
The two main difficulties I’m having is with using Activ Script with variables and targeting frames. Any help in these areas would be greatly appreciated.
Posted on: 7:49 am on February 1, 2005
Alaska
StoryMan -
You'll have to specify the parent.content frame.
There's lots of stuff on the subject, if you Google for 'pass variables between frames".
I'm 90% of the way there. The only thing left is how to get the search results to display in a specific frame. As it is now the results cover the complete frameset.
The code being used is outlined in the article "Create your own Search form":
This is the Activ Script for the input form: <FORM ACTION="#!search.as" METHOD="POST"> <INPUT TYPE="TEXT" NAME="SearchText" SIZE="30" MAXLENGTH="50"> <INPUT TYPE="SUBMIT" VALUE="Search"> <FORM>
Here is the code for search.as:
FSET('sText','SearchText') SEARCH('{sText}',0)
How can the search results be placed within a specific frame. Preferably, the user will see the results of the search in one frame and as they click on results the page will display in the content frame.
(Edited by Storyman at 11:30 pm on Feb. 3, 2005)
Posted on: 7:29 am on February 4, 2005
editor
Quote: from Storyman on 1:29 am on Feb. 4, 2005
I'm 90% of the way there. The only thing left is how to get the search results to display in a specific frame. As it is now the results cover the complete frameset....
How can the search results be placed within a specific frame. Preferably, the user will see the results of the search in one frame and as they click on results the page will display in the content frame.
Did you ever get this sorted out, Storyman? If so, how? This is something I would like to do, too.
Posted on: 6:18 am on July 28, 2006
Storyman
Hi Editor,
After posting the thread and realizing frames don't play well with ebooks (or the web for that matter), I moved on to CSS.
CSS, IMHO, has been worth learning. The toughest part of acquiring CSS skills is cross browser issues--which you don't need to concern yourself with if you are designing only for ebooks since they always use the IE rules. Pages load faster with CSS and there is so much more you can do design wise.
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.