retain highlighted information
Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Web Design Discussion
Forum Description: Discussion on web design and development subjects.
URL: https://forums.webwiz.net/forum_posts.asp?TID=9117
Printed Date: 28 March 2026 at 1:24am Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com
Topic: retain highlighted information
Posted By: pedalcars
Subject: retain highlighted information
Date Posted: 21 January 2004 at 4:24pm
Is there any way of "remembering" (client side or server side) text highlighted in a text entry field, to pass it to another page? (Without the user manually copying and pasting)
For example:
page1.asp has a web form in it with a <textarea> field in it.
page2.asp has another form with another entry field on it.
If a visitor has text displayed in the field on page1, I want them to be able to highlight part of that text, then go to page2 and have the highlighted section placed in that field automatically.
So basically, an automated copy-and-paste operation.
Is this possible?
NB. Don't worry about why; only about how!
Ta
------------- http://www.pedalcars.info/ - www.pedalcars.info
The most fun on four wheels
|
Replies:
Posted By: Mart
Date Posted: 21 January 2004 at 4:33pm
Post page1.asp to page2.asp and put in a hidden field:
<input type="hidden" name="field" value="<%=request.form("whatever")%>">
then post that to whatever...
Think thats what you mean.
|
Posted By: pedalcars
Date Posted: 21 January 2004 at 5:31pm
I only want the part of the contents of the <textarea name="whatever"> that the user has highlighted, i.e., possibly only a word or two, not the entire contents.
I appreciate I'm asking a lot, and it might not even be possible!
------------- http://www.pedalcars.info/ - www.pedalcars.info
The most fun on four wheels
|
Posted By: Mart
Date Posted: 22 January 2004 at 11:47am
|
You could do it with javascript and a frame, not very good at javascript so i can't really help you there.
|
|