Solved

Keeping Text Visible...sort of

Posted on 2004-10-01
6
130 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
Part One of the two-part Q&A series with MalwareTech.
Simple Linear Regression
Starting up a Project

635 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