Go Back   Trackpads Community > General Discussions > Computer and Technology > Web Design

Web Design Forums and discussions on webdesign

Web Design

Reply
 
LinkBack Thread Tools
Old 10-22-2005, 17:02   #1 (permalink)
Sig
Civilians

 
Default textarea rows

Firefox and IE count textarea rows differently. See
http://beta.timekeeperweb.com/t.html

Is there an html solution? (without javascript) Is there any solution that does
not involve detecting the browser type?
--
Sig
(add three to my address to avoid spam filter)
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Trackpads Information
Click to Visit
Old 10-22-2005, 17:02   #2 (permalink)
Mark Goodge
Civilians

 
Default Re: textarea rows

On Sat, 22 Oct 2005 20:25:00 GMT, Sig put finger to keyboard and
typed:

>Firefox and IE count textarea rows differently. See
>http://beta.timekeeperweb.com/t.html
>
>Is there an html solution? (without javascript) Is there any solution that does
>not involve detecting the browser type?


The best solution is not to bother about it. There can't be many
situations where it matters.

If it does matter, the best option is to check the browser string
using server-side scripting (eg, PHP, Perl, etc) and then build the
HTML as required. It won't be 100% reliable, but it will work
transparantly to the user.

Avoid javascript, as it won't work for users who have disabled it on
their browsers.

Mark
--
http://www.GoogleFun.info - fun and games with Google!
"There's just too much that time cannot erase"
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-22-2005, 17:02   #3 (permalink)
Sig
Civilians

 
Default Re: textarea rows

On Sat, 22 Oct 2005 2122 +0100, Mark Goodge
<usenet@listmail.good-stuff.co.uk> wrote:

>On Sat, 22 Oct 2005 20:25:00 GMT, Sig put finger to keyboard and
>typed:
>
>>Firefox and IE count textarea rows differently. See
>>http://beta.timekeeperweb.com/t.html
>>
>>Is there an html solution? (without javascript) Is there any solution that does
>>not involve detecting the browser type?

>
>The best solution is not to bother about it. There can't be many
>situations where it matters.
>
>If it does matter, the best option is to check the browser string
>using server-side scripting (eg, PHP, Perl, etc) and then build the
>HTML as required. It won't be 100% reliable, but it will work
>transparantly to the user.
>
>Avoid javascript, as it won't work for users who have disabled it on
>their browsers.


I have a situation where it matters. I agree about javascript. Of course it can
be done detecting the browser. That's not what I asked.

The best I have found so far is style="height:12em"

--
Sig
(add three to my address to avoid spam filter)
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-23-2005, 05:03   #4 (permalink)
Sig
Civilians

 
Default Re: textarea rows

On Sat, 22 Oct 2005 23:55:40 +0100, "T Wake" <taswakeAt@hotmail.com> wrote:

>What is the situation? There may be other solutions.


Without disagreeing with anything you said, I'd like to point out that some
people in this group have a tendency to answer the question they think I should
have asked, rather than the one I did ask.

It struck me as odd that a simple standard attribute, (rows in textarea) with
what I would have thought was an obvious meaning, is interpreted differently in
different browsers. So my original question was intended to elicit an
incantation to make textarea(a) equal textarea(b). Obviously, a simple thing
like row number could be fixed in a server script, but I was hoping that someone
had a better (and preferably cleaner) answer to the original question. I wanted
an answer to the question for its own sake. If I need to change my approach to
the page design, I can do that, but that's not the question.

The more I tried to find such an answer myself (doing things like specifying
line-height, font-size, etc.) the more I realized that all browsers are the
spawn of Satan, and I now doubt that there is a consistent meaning to 'rows'
even in one browser.

So I probably will redo the page to avoid this issue. But if anyone has an
answer to the original question (even if it turns out to be useless to me) I'd
still like to hear it.

--
Sig
(add three to my address to avoid spam filter)
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-23-2005, 05:03   #5 (permalink)
Mark Goodge
Civilians

 
Default Re: textarea rows

On Sun, 23 Oct 2005 0127 GMT, Sig put finger to keyboard and
typed:

>On Sat, 22 Oct 2005 23:55:40 +0100, "T Wake" <taswakeAt@hotmail.com> wrote:
>
>>What is the situation? There may be other solutions.

>
>Without disagreeing with anything you said, I'd like to point out that some
>people in this group have a tendency to answer the question they think I should
>have asked, rather than the one I did ask.


We've suggested the solution that will usually work, rather than a
kludge which may well not.

>It struck me as odd that a simple standard attribute, (rows in textarea) with
>what I would have thought was an obvious meaning, is interpreted differently in
>different browsers. So my original question was intended to elicit an
>incantation to make textarea(a) equal textarea(b). Obviously, a simple thing
>like row number could be fixed in a server script, but I was hoping that someone
>had a better (and preferably cleaner) answer to the original question. I wanted
>an answer to the question for its own sake. If I need to change my approach to
>the page design, I can do that, but that's not the question.


The best answer to your question, in the majority of circumstances, is
"change your approach to page design". That's not answering the
question we think you should have asked, it's answering the one you
did ask with an answer that you probably weren't expecting.

>The more I tried to find such an answer myself (doing things like specifying
>line-height, font-size, etc.) the more I realized that all browsers are the
>spawn of Satan, and I now doubt that there is a consistent meaning to 'rows'
>even in one browser.
>
>So I probably will redo the page to avoid this issue. But if anyone has an
>answer to the original question (even if it turns out to be useless to me) I'd
>still like to hear it.


The answer to your original question is that what you want cannot be
done with HTML. Period. There are some possible non-HTML workarounds,
of which one (redesign the page) is by far the best under almost all
circumstances.

Mark
--
http://www.MineOfUseless.info - everything you never needed to know!
"Shake off your golden shackles, children of time no more"
 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-23-2005, 17:02   #6 (permalink)
Adam Risser
Civilians

 
Default Re: textarea rows

Hi sig,

This is something that I've never noticed before. I would go with
setting the height in the style like you said. I don't see (or think
there is) a better solution!

Adam

 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-23-2005, 17:02   #7 (permalink)
T Wake
Civilians

 
Default Re: textarea rows


"Sig" <caff987@logsin.org> wrote in message news:435ae58b.34914739@felix...
> On Sat, 22 Oct 2005 23:55:40 +0100, "T Wake" <taswakeAt@hotmail.com>
> wrote:
>
>>What is the situation? There may be other solutions.

>
> Without disagreeing with anything you said, I'd like to point out that
> some
> people in this group have a tendency to answer the question they think I
> should
> have asked, rather than the one I did ask.


Very true. This is something that happens the world over and in all forms of
communication.

Generally it is not a bad thing. People have a tendency to (sometimes)
phrase their questions in a manner that creates ambiguity. Helpfull people
will try to answer what they think the question is, when the orginal
question has no answer.

If you dont like the answers and think they arent appropriate then, fine,
you dont need to read them or implement them.

> It struck me as odd that a simple standard attribute, (rows in textarea)
> with
> what I would have thought was an obvious meaning, is interpreted
> differently in
> different browsers.


I agree that FireFox's implementation seems very strange. I cant work out
the reasoning behind adding a row to the attribute but all browsers have
implementation quirks.

> So my original question was intended to elicit an
> incantation to make textarea(a) equal textarea(b). Obviously, a simple
> thing
> like row number could be fixed in a server script, but I was hoping that
> someone
> had a better (and preferably cleaner) answer to the original question. I
> wanted
> an answer to the question for its own sake. If I need to change my
> approach to
> the page design, I can do that, but that's not the question.


Ok, the answer to the question is "it is not possible at this time" so you
may be better changing your approach to the page design.

> The more I tried to find such an answer myself (doing things like
> specifying
> line-height, font-size, etc.) the more I realized that all browsers are
> the
> spawn of Satan, and I now doubt that there is a consistent meaning to
> 'rows'
> even in one browser.


Yes. It is not possible to ensure that you have a consistent display over
every browser with HTML. But then that was never the real aim of HTML.

> So I probably will redo the page to avoid this issue. But if anyone has an
> answer to the original question (even if it turns out to be useless to me)
> I'd
> still like to hear it.
>


So would I.


 
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks

Thread Tools

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

BB 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
Syntax highlighting in a textarea Dylan Parry Web Design 2 10-27-2005 13:03
Can you add maxlength to a TEXTAREA field in a form Serg Web Design 1 10-03-2005 21:00
Macro to select 4 entire rows and then delete rows Scott Viney Microsoft Applications 2 09-22-2005 15:00
Locking Inserting of Rows at certain rows? Joe HM Microsoft Applications 2 03-14-2005 11:00
HTML Textarea Replacment Jeremy Ross Web Design 3 11-05-2004 15:00


Community Information
Options
Quick Options
Trackpads Non-Commercial Ad
Copyright Information Click to Visit
Time
Server Time
All times are GMT -4. The time now is 07:19.
Copyright
Copyright Information
The header is based off of work by Vipixel.com and modified by this site. Trackpads and the Trackpads Logo are both Registered Trademarks of Jason Edwards and cannot be used without prior written permission.  The only exception is as a link back to this site. Trackpads is a private website run by a small legion of volunteers, 3 dogs, 12.5 cats and an army of small, super smart, bio-engineered mice with pointy hats and tutu's. Search Engine Friendly URLs by vBSEO 3.2.0 RC7
Archive Links
Archive Links
Page generated in 1.29293 seconds with 19 queries