Phil Powell wrote:[color=blue]
> "Christopher Finke" <chris@efinke.com> wrote [...]:[color=green]
>> "neur0maniak" <usenet@neur0maniak.co.uk> wrote [...]:[color=darkred]
>>> instead of using: cols="???"
>>> try using: style="width:100%;"[/color]
>>
>> Actually, cols is a required attribute of a textarea. You must provide a
>> value, but using 'style="width: 100%;"' will override the cols setting for
>> the width of the textarea.
>> [...][/color]
>
> Following was what I attempted, with horrific failure:[/color]
Which does not make me wonder why.
[color=blue]
> <script type="text/javascript">[/color]
OK.
[color=blue]
> <!--[/color]
Obsolete.
[color=blue]
> function getWinWidth() {
> var isNav = (document.all) ? false : true;
> var isIE = (document.all) ? true : false;
> if (isNav && !isIE)
> return(window.innerWidth);
> else if (isIE && !isNav)
> return(document.body.clientWidth);
> else
> return(null);
> }[/color]
Nonsense. Test exactly for the properties you want to use, not
something else: <http://pointedears.de/scripts/test/whatami>
[color=blue]
> var width = getWinWidth() / 4;[/color]
Not required. Use CSS.
[color=blue]
> document.writeln('<textarea rows="29" name="resume" cols="' +
> width + '">');[/color]
The "textarea" element requires a close tag which is missing here.
If you would include it, you would be required to escape the ETAGO
delimiter "</": "<\/".
[color=blue]
> //-->[/color]
Obsolete.
[color=blue]
> </script>
> <noscript>
> <textarea rows="29" name="resume" cols="120"
> style="{width:100%}">[/color]
^ ^[color=blue]
> blah blah blah this is my resume
> </textarea>
> </noscript>[/color]
You do not require scripting, so you do not require the "noscript"
element. But if you would, the "style" attribute's syntax would
have not been matched. You may want to learn about style sheets,
among other things.
[color=blue]
> What results is that you will see a textarea with someone's resume and
> you will also physically see the <noscript> and <textarea> tags INSIDE
> the textarea![/color]
BAD. Borken as designed.
Removed alt.* from the crosspost,
X-Post & F'up2 comp.infosystems.
www.authoring.misc
PointedEars