Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - retain highlighted information
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic Closedretain highlighted information

 Post Reply Post Reply
Author
pedalcars View Drop Down
Senior Member
Senior Member


Joined: 12 August 2002
Location: United Kingdom
Status: Offline
Points: 268
Direct Link To This Post Topic: retain highlighted information
    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
www.pedalcars.info

The most fun on four wheels

Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Direct Link To This Post 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.
Back to Top
pedalcars View Drop Down
Senior Member
Senior Member


Joined: 12 August 2002
Location: United Kingdom
Status: Offline
Points: 268
Direct Link To This Post 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!
www.pedalcars.info

The most fun on four wheels

Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.