Jump to content


Photo

Select All Button


  • Please log in to reply
13 replies to this topic

#1 brown2005

brown2005
  • Members
  • PipPipPip
  • Advanced Member
  • 943 posts

Posted 04 October 2006 - 03:55 PM

I dont know if this has been asked before or not but when someone makes a post and it shows up in the liitle box thing with the scrolling bars... is there not a way you can make a button to select all the text in that button to copy and paste into our php programs..

maybe you can all ready but i cant see it..

look forward to response.. thanks...

#2 ober

ober
  • Staff Alumni
  • Advanced Member
  • 5,337 posts
  • LocationEast Coast, USA

Posted 04 October 2006 - 04:23 PM

Sorry, but if you're too lazy to click in a box and hit Ctrl-A, I have no sympathy for you.  We will not be adding that modification.

Info: PHP Manual


#3 brown2005

brown2005
  • Members
  • PipPipPip
  • Advanced Member
  • 943 posts

Posted 04 October 2006 - 04:36 PM

well if it let me do that then I wouldnt ask the question.... it selects everything on the whole page.. not just wats in the box.. well it does for me...

Anyway, things like that make it a better place for the people who use the site..

#4 neylitalo

neylitalo
  • Staff Alumni
  • Advanced Member
  • 1,854 posts
  • LocationMichigan, USA

Posted 04 October 2006 - 04:38 PM

unfortunately, it's not such an easy task, even if we were to try and implement it. It would require javascript, and I'm not even sure that Javascript supports such an action.

However, there is something you can do - if you click the "Quote" button next to somebody's post, it'll copy their post content down to the Quick Reply box, and you can Ctrl + A from within the Quick Reply. Of course, you'll get the BBCode as well, but you can always clean that up.
http://nealylitalo.net - My personal website, and home of The Netizen's Journal.

#5 brown2005

brown2005
  • Members
  • PipPipPip
  • Advanced Member
  • 943 posts

Posted 04 October 2006 - 04:45 PM

thanks, nice to see someone that wants to help and explains....

#6 .josh

.josh
  • Staff Alumni
  • .josh
  • 14,871 posts

Posted 04 October 2006 - 05:00 PM

or you could like, use your mouse to highlight what you want, then right click and click on copy.  or after highlighting, press Ctrl+C

thanks, nice to see someone that wants to help and explains....


well we aren't really here to explain how to use your OS and/or browser shortcuts either...do you really think we should go out of our way to make a new mod/hack for everybody's personal shortcut preference?
Did I help you? Feeling generous? Buy me lunch! 
Please, take the time and do some research and find out how much it would have cost you to get your help from a decent paid-for source. A "roll-of-the-dice" freelancer will charge you $5-$15/hr. A decent entry level freelancer will charge you around $15-30/hr. A professional will charge you anywhere from $50-$100/hr. An agency will charge anywhere from $100-$250/hr. Think about all this when soliciting for help here. Think about how much money you are making from the work you are asking for help on. No, we do not expect you to pay for the help given here, but donating a few bucks is a fraction of the cost of what you would have paid, shows your appreciation, helps motivate people to keep offering help without the pricetag, and helps make this a higher quality free-help community :)

#7 ober

ober
  • Staff Alumni
  • Advanced Member
  • 5,337 posts
  • LocationEast Coast, USA

Posted 04 October 2006 - 05:24 PM

I love how people take it straight to the dumper when they don't get the exact answer they were looking for.

Info: PHP Manual


#8 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 04 October 2006 - 05:32 PM

Ctrl+A will only work on textareas/textfields. When someone posts a code into a post it is not a textarea the submited code is in. Instead it is a div with an overflow, thus making the elusion of it being a textearea when scrollbars are there. Thats why Ctrl+A selects everything on the page.

You can do it with javascript. There is a method/function you can use. Seen it been done somewhere before. However I do agree that there is no point in having such a feature.

#9 .josh

.josh
  • Staff Alumni
  • .josh
  • 14,871 posts

Posted 04 October 2006 - 05:35 PM

lol

p.s.- brown2005, if you really wanted to see your thing implemented, perhaps you should go to SMF's forum and make a suggestion there. Maybe they will implement it in future versions or maybe someone will make a mod.  In other words, the best place to ask for a change/addon for a script is to go the people who made it in the first place.
Did I help you? Feeling generous? Buy me lunch! 
Please, take the time and do some research and find out how much it would have cost you to get your help from a decent paid-for source. A "roll-of-the-dice" freelancer will charge you $5-$15/hr. A decent entry level freelancer will charge you around $15-30/hr. A professional will charge you anywhere from $50-$100/hr. An agency will charge anywhere from $100-$250/hr. Think about all this when soliciting for help here. Think about how much money you are making from the work you are asking for help on. No, we do not expect you to pay for the help given here, but donating a few bucks is a fraction of the cost of what you would have paid, shows your appreciation, helps motivate people to keep offering help without the pricetag, and helps make this a higher quality free-help community :)

#10 ober

ober
  • Staff Alumni
  • Advanced Member
  • 5,337 posts
  • LocationEast Coast, USA

Posted 04 October 2006 - 05:37 PM

And I apologize for skipping the fact that you can't do a Ctrl-A within a code block... but I like neylitalo's suggestion for getting around that.

Info: PHP Manual


#11 fenway

fenway
  • Staff Alumni
  • MySQL Si-Fu / PHP Resident Alien
  • 16,199 posts
  • LocationToronto, ON

Posted 04 October 2006 - 07:54 PM

There's no reason that you can't do this with JS and dump the contents into the clipboard... at least for IE.
Seriously... if people don't start reading this before posting, I'm going to consider not answering at all.

#12 ober

ober
  • Staff Alumni
  • Advanced Member
  • 5,337 posts
  • LocationEast Coast, USA

Posted 04 October 2006 - 08:26 PM

Actually... there is.  Everytime we made a mod like this it has to be meticulously cared for everytime we apply another mod or patch or upgrade.  It's not as if it's a technical issue.  It's a maintenance issue.

Info: PHP Manual


#13 neylitalo

neylitalo
  • Staff Alumni
  • Advanced Member
  • 1,854 posts
  • LocationMichigan, USA

Posted 04 October 2006 - 09:00 PM

There's no reason that you can't do this with JS and dump the contents into the clipboard... at least for IE.

I know that Firefox doesn't allow JS to cut/copy/paste anything. I'm not sure if it's a setting that you can disable, or if it's built in, but the fact that most PHP Freaks users do not use IE is reason enough to not bother with it.
http://nealylitalo.net - My personal website, and home of The Netizen's Journal.

#14 fenway

fenway
  • Staff Alumni
  • MySQL Si-Fu / PHP Resident Alien
  • 16,199 posts
  • LocationToronto, ON

Posted 04 October 2006 - 10:26 PM

Actually... there is.  Everytime we made a mod like this it has to be meticulously cared for everytime we apply another mod or patch or upgrade.  It's not as if it's a technical issue.  It's a maintenance issue.

I should have said no "theoretical reason" ;-)
Seriously... if people don't start reading this before posting, I'm going to consider not answering at all.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users