SunQuest
           Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Try It Free
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old July 22nd, 2002, 02:27 AM
nemesis nemesis is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Saint-Petersburg, Russia
Posts: 29 nemesis User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Mozilla texarea

Hello!
It's good to be the first to post (after Matt, of course )!
So, the problem is simple and small: the '<textarea>' element. In MSIE there is an attribute 'wrap' which controls the line-wrapping. The W3C standard lacks the analogue. And the question is: does Mozilla stick to the standards so completely, or there is a way to turn off the line-wrapping inside the '<textarea>'?
Thanks in advance, any feedback would be greatly appreciated.

P.S. And thanks to Matt for creating this forum (This message was feeling really uncomfortable in the PHP Coding area)

Reply With Quote
  #2  
Old July 22nd, 2002, 02:38 AM
Matt Matt is offline
Moderator
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
RE: Mozilla texarea

Hmmm..with my Mozilla this:

<textarea cols=20 rows=10></textarea>

does not wrap text...maybe I am misunderstanding something?


Reply With Quote
  #3  
Old July 22nd, 2002, 02:50 AM
nemesis nemesis is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Saint-Petersburg, Russia
Posts: 29 nemesis User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
RE: Mozilla texarea

Well I've already done a little bit of investigation on the subject. So what I've found out:
if you do not set the attributes defining width of the textarea (cols="20", style="width: 100px") Mozilla will not wrap. But as soon as it sees the above mentioned attributes, it starts wrapping) (I'm currently using Mozilla 1.1 alpha.
So, the following textarea will have no line wraps:
<textarea rows="10">funny things happen very very very very often</textarea>
And these two will wrap the line:
<textarea cols="20" rows="10">funny things happen very very very very often</textarea>
<textarea style="width: 100px" rows="10">funny things happen very very very very often</textarea>
So it looks like I'm unlucky, cause I do need to set the textarea width and to stick to Mozilla. Thanks for your support, Matt. I do appreciate it.

Reply With Quote
  #4  
Old July 22nd, 2002, 03:01 AM
Matt Matt is offline
Moderator
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
RE: Mozilla texarea

Hmm..been playing with it a bit in Mozilla and yes, it is very flaky....dunno what to say about that....just hope they get it sorted out...

Reply With Quote
  #5  
Old July 22nd, 2002, 03:39 AM
nemesis nemesis is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Saint-Petersburg, Russia
Posts: 29 nemesis User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Re: Mozilla textarea

Solved!
It was too easy, I should have guessed earlier. All I had to do was to set up an external style for the textarea specifying its width. So the following code works nicely:
Code:
<style type="text/css">
  textarea.edit {
    width: 150px;
  }
</style>
<textarea class="edit" rows="8">funny things happen very very very very often</textarea>

Thanks for the assistance

Reply With Quote
  #6  
Old April 19th, 2004, 09:35 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: Mozilla texarea

If you type a word (of course, with no space) that is longer than the width of the textarea, the line will not wrap and horizontal scrollbar appears.

<textarea class="edit" rows="8">aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa</textarea>


Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > Mozilla texarea


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Try It Free




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway