Solved

Keeping Text Visible...sort of

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Selenium and Interactive Data Language 3 53
Restore Windows 7 Snipping Tool function to Windows 10 10 93
Visual Studio hangs on running project 6 56
BATCH to EXE Converter 2 67
Displaying an arrayList in a listView using the default adapter is rarely the best solution. To get full control of your display data, and to be able to refresh it after editing, requires the use of a custom adapter.
When there is a disconnect between the intentions of their creator and the recipient, when algorithms go awry, they can have disastrous consequences.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

713 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