Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2005-03-04, 05:16 PM   #1
amber438
Whatever don't kill ya makes ya stronger...
 
amber438's Avatar
 
Join Date: Apr 2003
Location: New York
Posts: 820
Send a message via ICQ to amber438
I found this nifty little form select all script but..

I can't seems to get it to display my recip table in the text area..
anyone have any ideas?

Here's the script

any help would be super!!
__________________
Red Hot Links
Red Hot Galleries
amber438 is offline   Reply With Quote
Old 2005-03-05, 08:40 PM   #2
Useless
Certified Nice Person
 
Useless's Avatar
 
Join Date: Oct 2003
Location: Dirty Undies, NY
Posts: 11,268
Send a message via ICQ to Useless
Could you post how you implemented it on your page? Or just put up a link to the page it's on on your site.
__________________
Click here to purchase a bridge I'm selling.
Useless is offline   Reply With Quote
Old 2005-03-06, 02:37 AM   #3
Chop Smith
Eighteen 'til I Die
 
Chop Smith's Avatar
 
Join Date: Apr 2003
Location: Mississippi
Posts: 2,168
Send a message via ICQ to Chop Smith
Amber,
I have used similar code for select all. If you post the URL, I am sure that Useless can be useful and help you. I will also be glad to help.

Could not get it off my mind. Take a look at this. http://choponthelake.com/amber438.html
__________________
Chop Smith is offline   Reply With Quote
Old 2005-03-06, 09:14 AM   #4
amber438
Whatever don't kill ya makes ya stronger...
 
amber438's Avatar
 
Join Date: Apr 2003
Location: New York
Posts: 820
Send a message via ICQ to amber438
Thanks chop and useless..but I dont think it's as easy..what you have in the textarea is just text.
I'm trying to make category specific html recips. So I went looking for a nice little bit of code so I can display my recip and have the submitters copy and paste it.
I can't get the textarea to display it at all so I've not put up anything yet

Here is the recip I'm working eith for now. If I can get it to work, I can use it for both red hot galleries and red hot links for category recips. I think there is some code replacement I am missing?
__________________
Red Hot Links
Red Hot Galleries
amber438 is offline   Reply With Quote
Old 2005-03-06, 09:24 AM   #5
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
Is this what you wanted your recip to look like?

If you post a link to a page where you actually used that code we might be able to help you getting it to work.
Attached Images
File Type: jpg recip.jpg (60.7 KB, 215 views)
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2005-03-06, 09:53 AM   #6
swedguy
Vagabond
 
swedguy's Avatar
 
Join Date: Aug 2003
Posts: 2,374
Send a message via ICQ to swedguy
http://www.scorpiolinks.com/recips.html

Is that what you want to do?
swedguy is offline   Reply With Quote
Old 2005-03-06, 10:02 AM   #7
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
I think Amber wants to add the select all to each textarea.

Personally I think the webmasters all know enough to click inside of the textarea and hit command/control A to select all with needing a script but then I'm amazed at what people don't know.

That script looks easy enough to use with an example and all but I would need to see a page where she actually tried to use it to see what she is doing wrong.
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2005-03-06, 10:34 AM   #8
swedguy
Vagabond
 
swedguy's Avatar
 
Join Date: Aug 2003
Posts: 2,374
Send a message via ICQ to swedguy
Or you can have it copy what's in the textarea automagically to your clipboard, works in both FireFox and IE (not sure about Mac, Cleo?)

http://www.scorpiolinks.com/recips.html
swedguy is offline   Reply With Quote
Old 2005-03-06, 10:42 AM   #9
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
Doesn't work in Safari or Mozilla on a Mac, didn't try IE. The page that Amber posted does work on my Mac.

Command A, then Command C works always. On a Mac the Command key does what the Control key does on a PC. The Control key is the right mouse button on a Mac. I use a two button mouse with a scroll wheel so I never use the Control key unless I'm using the track pad that is built-in to my laptop.
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2005-03-06, 11:25 AM   #10
Useless
Certified Nice Person
 
Useless's Avatar
 
Join Date: Oct 2003
Location: Dirty Undies, NY
Posts: 11,268
Send a message via ICQ to Useless
Ok, I think this is what you want:
http://www.maladaptedmedia.com/amber.html

Leave the Javascript untouched:
<script language="Javascript">
<!--
function selectAll(theField) {
var tempval=eval("document."+theField)
tempval.focus()
tempval.select()
}
//-->
</script>

But....edit these lines for each successive recip:
<form name="recip">
<a href="javascript:selectAll('recip.select1')">Select All</a>
<textarea name="select1" rows=5 cols=20>

The form name must be different for each recip. Make sure the name you give it in 'form name=recip' is the same name you give it in the 'selectAll('recip.select1')' portion of the code.

Then, give each recip a distinct 'select' name. The name given here 'selectAll('recip.select1')' must match the name given in the textarea, such as '<textarea name="select1" rows=5 cols=20>'

The simplest way would be to number them like this:
<form name="recip2">
<a href="javascript:selectAll('recip2.select2')">Select All</a>
<textarea name="select2" rows=5 cols=20>
and
<form name="recip3">
<a href="javascript:selectAll('recip3.select3')">Select All</a>
<textarea name="select3" rows=5 cols=20>

But you should be able to name them per category:
<form name="anal">
<a href="javascript:selectAll('anal.selectanal')">Select All</a>
<textarea name="selectanal" rows=5 cols=20>

Just make sure you give each recip distinct variables.
__________________
Click here to purchase a bridge I'm selling.
Useless is offline   Reply With Quote
Old 2005-03-06, 11:45 AM   #11
Cleo
Subversive filth of the hedonistic decadent West
 
Cleo's Avatar
 
Join Date: Mar 2003
Location: Southeast Florida
Posts: 27,936
That works for me
__________________
Free Rides on Uber and Lyft
Uber Car: uberTzTerri
Lyft Car: TZ896289
Cleo is offline   Reply With Quote
Old 2005-03-06, 04:48 PM   #12
amber438
Whatever don't kill ya makes ya stronger...
 
amber438's Avatar
 
Join Date: Apr 2003
Location: New York
Posts: 820
Send a message via ICQ to amber438
I just got home!!
Yeah Swede, that's kinda like what I want to do
I tried it in dreamweaver and the code got all messed up and did not show like you have it there. I added the table for the recip into where the "textarea" goes as is.
I"ll look at the code and see what you did differently!
It works for me!!
Thank you all so much!!
__________________
Red Hot Links
Red Hot Galleries
amber438 is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:17 PM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc