TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 09-02-2010, 05:08 AM   #1 (permalink)
The Acquainted
 
KingOfTheSouth's Avatar
 
Join Date: Oct 2008
Location: Cincinnati
Posts: 151
Thanks: 14
KingOfTheSouth is on a distinguished road
Default Resizable text fields

I have been noticing that everywhere I go that all text fields are resizable even simple ones such as

Quote:
<textarea class="text" maxlength="300" cols="60" rows="6" name="msg"></textarea>
Is this standard for html now? I see it on every single website I go on anymore.
KingOfTheSouth is offline  
Reply With Quote
Old 09-02-2010, 01:59 PM   #2 (permalink)
The Addict
 
tony's Avatar
 
Join Date: Aug 2008
Posts: 336
Thanks: 8
tony is on a distinguished road
Default

If you are using chrome/chromium, they display any textarea as resizeable. And I think even safari has it, I am not sure.
tony is offline  
Reply With Quote
Old 09-02-2010, 03:29 PM   #3 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

There is no cross-platform HTML solution, its done in javascript. The only one I've ever used is the jQuery autoResize library.

If it is happening on every website, its your browser.
__________________

Village Idiot is offline  
Reply With Quote
Old 09-02-2010, 05:26 PM   #4 (permalink)
The Acquainted
 
buildakicker's Avatar
 
Join Date: Jan 2008
Posts: 119
Thanks: 21
buildakicker is on a distinguished road
Big Grin

Quote:
Originally Posted by Village Idiot View Post
There is no cross-platform HTML solution, its done in javascript. The only one I've ever used is the jQuery autoResize library.

If it is happening on every website, its your browser.
YES - Use the jQuery one... real nice!
Resize Text Area Search
__________________
SkiLeases.com
buildakicker is offline  
Reply With Quote
Old 09-02-2010, 06:47 PM   #5 (permalink)
is cute and cuddly
 
delayedinsanity's Avatar
 
Join Date: Mar 2008
Location: Vegas, Baby
Posts: 963
Thanks: 31
delayedinsanity is on a distinguished road
Default

It's supported natively by all browsers implementing the CSS 3 UI, so we're looking at Chrome, Safari, FireFox 4, et al. No word on IE, or at least I couldn't turn anything up on Google. You can control it too;

css Code:
textarea {
resize: both; /* default */
resize: vertical;
resize: horizontal;
resize: none; /* off */
}

I know this isn't what you were necessarily asking but I'll throw in a quick mention for clarity; if you want the textarea to automatically resize, ala Facebook, you will definitely have to incorporate a JavaScript solution.
__________________
uʍop ǝpısdn sı ɹǝʇndɯoɔ ɹnoʎ sıɥʇ pɐǝɹ uɐɔ noʎ ɟı
delayedinsanity is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
create .txt with text in the field? Tim Dobson General 6 02-28-2010 04:00 AM
unordered list replace bullet by image according to level, if last level text as link Peuplarchie General 3 02-01-2010 03:38 AM
Text from Word-document Tanax General 13 02-06-2009 12:39 PM
Input-field with captured text falsely empties on click sidisinsane Javascript, AJAX, E4X 5 12-05-2008 12:12 AM
PDF Creation - Help! Sam Granger General 7 10-31-2007 11:32 AM


All times are GMT. The time now is 09:26 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design