Solved

Keeping Text Visible...sort of

Posted on 2004-10-01
6
124 Views
Last Modified: 2010-04-17
This one's a little obtuse but let me try to explain:

On a form I have a question to which the user clicks Yes/No...forget No for the moment...

when Yes is clicked, text (which seems invisible before click, white on white background) underneath the question suddenly appears, required input in red, non-required in black...so far so good...

problem is that if the user pages forward, then back, the text is gone but responses are still there...is there a way I can have the "appearing" text stay, almost, naively, like the Yes is invisibly clicked? Hope this is clear enough.

Thanks,
Ron
0
Comment
Question by:ronaldj
  • 2
6 Comments
 
LVL 67

Expert Comment

by:sirbounty
ID: 12203558
What language?

You might have the 'back' button generate a routine that the "Yes" response would...
0
 

Author Comment

by:ronaldj
ID: 12203569
Sorry...Javascript
0
 
LVL 67

Expert Comment

by:sirbounty
ID: 12203588
Ew - probably can't help you then. :( Sorry

But I would 'think' you'd have something along the same lines as posted before.

So that if 'yes' is clicked - have it jump to a "Yes" subroutine and if 'Back" is clicked, perform the same routine...?
0
 
LVL 11

Accepted Solution

by:
KurtVon earned 250 total points
ID: 12203669
Add a flag to the form object telling whether the "yes" button has been pressed or not.

Move the code for "showing" the text out of the "yes" button handler and into it's own function.

Call that function from the yes handler and set the flag.  Call that function from the "form show" function the back button should invoke when the flag is set.

Hope this helps.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Article by: Nadia
Linear search (searching each index in an array one by one) works almost everywhere but it is not optimal in many cases. Let's assume, we have a book which has 42949672960 pages. We also have a table of contents. Now we want to read the content on p…
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now