Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Community Discussions (All other subjects)
 @tomic's "Select All" JavaScript
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

kwhipp
Junior Member

United States
407 Posts

Posted - 14 November 2002 :  14:01:32  Show Profile
I'm working on an ASP/HTML source code display and markup project. I would like to incorporate a button that selects all of the text in a textarea box, like I have seen in some of @tomic's MOD readme files.

Here is the code that is written in the pop-up window.
<button onClick="javascript:this.form.S35.focus();this.form.S35.select();">Select All</button><br>
<textarea align="center" rows="33" name="S35" cols="47" readonly><!--#INCLUDE FILE="inc_sha256.asp"-->
<!--#INCLUDE FILE="inc_header.asp" -->
<!--#INCLUDE FILE="inc_func_member.asp" -->
</textarea>
When the button is pressed, nothing is selected. Any ideas?

- Kevin

@tomic
Senior Member

USA
1790 Posts

Posted - 14 November 2002 :  15:36:35  Show Profile  Visit @tomic's Homepage  Send @tomic an ICQ Message
First I want to say that this code, for me at least, started with Nathan. I "borrowed" the idea and that part of the code from him.

Have you placed the code you have above between <form name="SS"> and </form>?

@tomic

SportsBettingAcumen.com
Go to Top of Page

kwhipp
Junior Member

United States
407 Posts

Posted - 14 November 2002 :  17:05:41  Show Profile
Thank you! That did it. I had not noticed the "form" tags.

While I'm here, any idea if there is a way to create a "copy" button?

- Kevin
Go to Top of Page

@tomic
Senior Member

USA
1790 Posts

Posted - 14 November 2002 :  17:41:45  Show Profile  Visit @tomic's Homepage  Send @tomic an ICQ Message
I am pretty sure it would have to be IE and windows specific code.

@tomic

SportsBettingAcumen.com
Go to Top of Page

RichardKinser
Snitz Forums Admin

USA
16655 Posts

Posted - 14 November 2002 :  19:12:24  Show Profile
you might try this:

http://www.dynamicdrive.com/dynamicindex11/selectform.htm
Go to Top of Page

kwhipp
Junior Member

United States
407 Posts

Posted - 14 November 2002 :  21:47:02  Show Profile
Thanks Richard! Perfect.

- Kevin
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.22 seconds. Powered By: Snitz Forums 2000 Version 3.4.07