Solved

Keeping Text Visible...sort of

Posted on 2004-10-01
6
127 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
firstswap challenge 20 82
I need an assist with a programming logic math question. 5 73
simplest php form 3 80
Full Screen problem when auto scale IFRAME 2 100
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
When there is a disconnect between the intentions of their creator and the recipient, when algorithms go awry, they can have disastrous consequences.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …

790 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