navigation
a webmaster learning community
     Home    Register     Search      Help      Login    
Sponsors

Shopping Cart Software
Ecommerce software integrated into Frontpage, Dreamweaver and Golive templates. No monthly fees and available in ASP and PHP versions.

Website Templates
We also have a wide selection of Dreamweaver, Expression Web and Frontpage templates as well as webmaster tools and CSS layouts.

Frontpage website templates
Creative Website Templates for FrontPage, Dreamweaver, Flash, SwishMax

Search Forums
 

Advanced search
Recent Posts

 Todays Posts
 Most Active posts
 Posts since last visit
 My Recent Posts
 Mark posts read

 

Textarea wrapping problem in Firefox using xhtml strict

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
Printable Version 

All Forums >> Web Development >> General Web Development >> Textarea wrapping problem in Firefox using xhtml strict
Page: [1]
 
womble

 

Posts: 5702
Joined: 3/14/2005
From: Living on the edge
Status: offline

 
Textarea wrapping problem in Firefox using xhtml strict - 7/22/2005 16:47:25   
I actually posted this question as an aside in another post, but I thought it might fare better in a thread of it’s own, and although the other problem I was having, I don't think is a problem now, I can't work out what's happening with the textareas on my forms.

I have a textarea on a form, and while it seems to work just fine in everything else, including IE, with text wrapping nicely onto the next line, a horizontal scrollbar appears and it just keeps going and going in FF – you can see the problem here (it only shows up in FF).

I’m using xhtml strict, and of course the "wrap" attribute isn't part of the xhtml specification. When I first uploaded the page to the server, initially I forgot to upload the updated version of my css. Now I don’t know if it’s anything to do with the css, but before I uploaded the revised css, it did wrap properly. I’ve tried it again with the css for that particular form element taken out, but this time it didn’t make any difference. The (x)html for the textarea is:

<dt><label for="eventdescription">Description:</label></dt>
<dd><textarea id="eventdescription" name="eventdescription" rows="5" cols="35" onkeypress="textCounter(this,this.form.counter,300);"></textarea></dd>


And the css is:

#eventdescription, #contact { width: 300px; }


(I’ve also tried putting in:

{ white-space: no-wrap; }


which BobbyDouglas also tried, and that made no difference either)

Anyone any ideas what’s going on here, or does anyone know of any way to force wrapping in FF?


_____________________________

~~ "A cruel god ain't no god at all" ~~
~~ Erase hate. Practice love. ~~
:)
BobbyDouglas

 

Posts: 5470
Joined: 5/15/2003
From: Arizona
Status: offline

 
RE: Textarea wrapping problem in Firefox using xhtml st... - 7/22/2005 17:04:26   
There is no valid way to do this. Just be sneaky and include wrap="off" in the textarea like I did here: Custom Error Page Generator

Be sneaky, or enjoying spending weeks trying to figure this one out :)

_____________________________

Arizona Web Design - Mr Bobs Web Design in Arizona
The Arizona Web Hosting Challenge

(in reply to womble)
Tailslide

 

Posts: 6269
Joined: 5/10/2005
From: Out here on the raggedy edge
Status: online

 
RE: Textarea wrapping problem in Firefox using xhtml st... - 7/22/2005 18:59:25   
I wouldn't worry too much - it's only a problem if people are entering a single long long string of characters - normal text wraps with no problems.

_____________________________

"My strategy is so simple an idiot could have devised it"
Little Blue Plane Web Design | Blood, Sweat & Rust - A Land Rover restoration project

(in reply to BobbyDouglas)
womble

 

Posts: 5702
Joined: 3/14/2005
From: Living on the edge
Status: offline

 
RE: Textarea wrapping problem in Firefox using xhtml st... - 7/23/2005 5:10:52   
Thanks for taking a look for me.

quote:

it's only a problem if people are entering a single long long string of characters - normal text wraps with no problems.


:) I can't believe I didn't spot that! I was testing it by just keeping my finger on one key and watching the little counter go down, not putting in any spaces or anything! :) That's solved that mystery as well then. :)

_____________________________

~~ "A cruel god ain't no god at all" ~~
~~ Erase hate. Practice love. ~~
:)

(in reply to Tailslide)
BobbyDouglas

 

Posts: 5470
Joined: 5/15/2003
From: Arizona
Status: offline

 
RE: Textarea wrapping problem in Firefox using xhtml st... - 10/22/2005 4:05:44   
Bump. Found this from a search, still no answer :)

_____________________________

Arizona Web Design - Mr Bobs Web Design in Arizona
The Arizona Web Hosting Challenge

(in reply to womble)
jaybee

 

Posts: 14191
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: Textarea wrapping problem in Firefox using xhtml st... - 10/22/2005 4:20:46   
quote:

single long long string of characters - normal text wraps with no problems.


Funny that. :)

When testing forms or table cell content or anything else, always use realistic test stuff or you'll drive yourself nuts with problems that aren't problems.

Bobby D, wakey wakey. The answer is above. She was just using great long strings of text with no spaces. There was nothing to wrap.

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to BobbyDouglas)
BobbyDouglas

 

Posts: 5470
Joined: 5/15/2003
From: Arizona
Status: offline

 
RE: Textarea wrapping problem in Firefox using xhtml st... - 10/22/2005 4:39:57   
That's still the problem, even the content on the link I posted doesn't work. The strings are not that long either.

_____________________________

Arizona Web Design - Mr Bobs Web Design in Arizona
The Arizona Web Hosting Challenge

(in reply to jaybee)
womble

 

Posts: 5702
Joined: 3/14/2005
From: Living on the edge
Status: offline

 
RE: Textarea wrapping problem in Firefox using xhtml st... - 10/22/2005 5:32:18   
Like Jaybee said, since I started using realistic test stuff the problem's all but disappeared. I've just tried it out again now and though the scrollbar does appear briefly at the end of a line occassionally if it's a particularly long word, as soon as you press spacebar it wraps and the scrollbar disappears. I can live with that.

_____________________________

~~ "A cruel god ain't no god at all" ~~
~~ Erase hate. Practice love. ~~
:)

(in reply to BobbyDouglas)
jaybee

 

Posts: 14191
Joined: 10/7/2003
From: Berkshire, UK
Status: offline

 
RE: Textarea wrapping problem in Firefox using xhtml st... - 10/22/2005 6:36:42   
quote:

as soon as you press spacebar it wraps and the scrollbar disappear


That's because it doesn't know you're at the end of the word until you press the space bar.

_____________________________

If it ain't broke..... fix it until it is.
:)

:)
GAWDS
Now where did I put that Doctype?

(in reply to womble)
BobbyDouglas

 

Posts: 5470
Joined: 5/15/2003
From: Arizona
Status: offline

 
RE: Textarea wrapping problem in Firefox using xhtml st... - 10/22/2005 7:48:16   
But in my case it doesn't work.

_____________________________

Arizona Web Design - Mr Bobs Web Design in Arizona
The Arizona Web Hosting Challenge

(in reply to jaybee)
womble

 

Posts: 5702
Joined: 3/14/2005
From: Living on the edge
Status: offline

 
RE: Textarea wrapping problem in Firefox using xhtml st... - 10/22/2005 8:24:32   
I've just tried validating that page, and you've got a couple of errors coming up relating to that form. The first's with the name attribute for the form (there isn't a 'name' attribute for forms in strict xhtml, and the same thing with the 'wrap' on the text box.

This is the code I'm using for my textbox and it's working fine:

Form action:
<form action="scripts/emailformevents.php" method="post" id="eventsform" enctype="text">
<fieldset>
<input type='hidden' name='rec_mailto' value='xxxxxxxxxx' />
<input type='hidden' name='rec_subject' value='Web events listing request' />
<input type='hidden' name='rec_thanks' value='../listingthanks.html' />


Textbox:
<dt><label for="eventdescription">Description:</label></dt>
<dd><textarea id="eventdescription" name="eventdescription" rows="5" cols="35" onkeypress="textCounter(this,this.form.counter,300);"></textarea></dd>
<dt><label class="cbxl2" for="counter" id="counterlabel">  Characters remaining</label></dt>
<dd><input type="text" id="counter" name="counter" maxlength="3" size="3" value="300" onblur="textCounter(this.form.counter,this,300);" /></dd> 
<dt>


_____________________________

~~ "A cruel god ain't no god at all" ~~
~~ Erase hate. Practice love. ~~
:)

(in reply to BobbyDouglas)
Page:   [1]

All Forums >> Web Development >> General Web Development >> Textarea wrapping problem in Firefox using xhtml strict
Page: [1]
Jump to: 1





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts