Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   Programming & Scripting (http://www.greenguysboard.com/board/forumdisplay.php?f=15)
-   -   I found this nifty little form select all script but.. (http://www.greenguysboard.com/board/showthread.php?t=17147)

amber438 2005-03-04 05:16 PM

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!!

Useless 2005-03-05 08:40 PM

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.

Chop Smith 2005-03-06 02:37 AM

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

amber438 2005-03-06 09:14 AM

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?

Cleo 2005-03-06 09:24 AM

1 Attachment(s)
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.

swedguy 2005-03-06 09:53 AM

http://www.scorpiolinks.com/recips.html

Is that what you want to do?

Cleo 2005-03-06 10:02 AM

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.

swedguy 2005-03-06 10:34 AM

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

Cleo 2005-03-06 10:42 AM

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.

Useless 2005-03-06 11:25 AM

Ok, I think this is what you want:
http://www.maladaptedmedia.com/amber.html

Leave the Javascript untouched:


But....edit these lines for each successive recip:

Select All