Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 11-12-2007, 04:02 PM   #1
eroswebmaster
March 1st, 2003
 
Join Date: Jul 2001
Location: Seat 4 @ Venetian Poker Room
Posts: 20,295
Form code...what am I doing wrong here?

I am trying to create a button that will highlight the text in a form so people can copy it.

There will be a lot of text in the form, otherwise I wouldn't worry about it.

This will be posted on a wordpress blog. I've tried it in both firefox and IE and it doesn't highlight the text

<form name="copyThis">
<textarea name="codeToCopy" cols="40" rows="5" readonly="readonly">
Click on the button below to highlight this text.
</textarea>
<br>
<input type="button" value="Highlight All" onclick="javascript:this.form.codeToCopy.focus();t his.form.codeToCopy.select();">

</form>

Please help thanks in advance
__________________
For rent - ICQ 127-027-910
Click here for more details
eroswebmaster is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-12-2007, 04:04 PM   #2
TDF
Triple OG nigga on GFY
 
TDF's Avatar
 
Industry Role:
Join Date: Mar 2002
Location: in the BP4L family compound
Posts: 27,296
your code snubbed you
__________________
Sig heil

TDF is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-12-2007, 04:04 PM   #3
eroswebmaster
March 1st, 2003
 
Join Date: Jul 2001
Location: Seat 4 @ Venetian Poker Room
Posts: 20,295
Quote:
Originally Posted by TDF View Post
your code snubbed you
Et tu brute
__________________
For rent - ICQ 127-027-910
Click here for more details
eroswebmaster is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-12-2007, 04:05 PM   #4
StuartD
Sofa King Band
 
StuartD's Avatar
 
Join Date: Jul 2002
Location: Outside the box
Posts: 29,903
this.form doesn't exist.

try

document.copyThis.codeToCopy.select();
StuartD is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-12-2007, 04:06 PM   #5
TDF
Triple OG nigga on GFY
 
TDF's Avatar
 
Industry Role:
Join Date: Mar 2002
Location: in the BP4L family compound
Posts: 27,296
Quote:
Originally Posted by eroswebmaster View Post
Et tu brute
awww give me a hug big boy...i miss that fuzzy beard of yours
__________________
Sig heil

TDF is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-12-2007, 04:08 PM   #6
eroswebmaster
March 1st, 2003
 
Join Date: Jul 2001
Location: Seat 4 @ Venetian Poker Room
Posts: 20,295
Quote:
Originally Posted by StuartD View Post
this.form doesn't exist.

try

document.copyThis.codeToCopy.select();
Fixed..thx
__________________
For rent - ICQ 127-027-910
Click here for more details
eroswebmaster is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-12-2007, 04:52 PM   #7
V_RocKs
Damn Right I Kiss Ass!
 
Industry Role:
Join Date: Dec 2003
Location: Cowtown, USA
Posts: 32,421
Forms these days...
V_RocKs is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.