HighDots Forums  

button to open a textarea

alt.html.dhtml alt.html.dhtml


Discuss button to open a textarea in the alt.html.dhtml forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Ike
 
Posts: n/a

Default button to open a textarea - 12-31-2003 , 08:00 PM






Im a dhtml newbie, and am wondering if anyone knows where I might find an
example of, say, clicking a button or link, which then opens an editable
textarea.

Thank you, Ike



Reply With Quote
  #2  
Old   
William Morris
 
Posts: n/a

Default Re: button to open a textarea - 01-02-2004 , 09:29 AM






For my part, I'd put the textarea on the page inside a div with
display='none', then display it when the button is clicked. Trying to
create it at "run-time" would be a pain.

"Ike" <rxv (AT) hotmail (DOT) com> wrote

Quote:
Im a dhtml newbie, and am wondering if anyone knows where I might find an
example of, say, clicking a button or link, which then opens an editable
textarea.

Thank you, Ike





Reply With Quote
  #3  
Old   
Woolly Mittens
 
Posts: n/a

Default Re: button to open a textarea - 01-10-2004 , 04:57 AM



"Ike" <rxv (AT) hotmail (DOT) com> wrote

Quote:
Im a dhtml newbie, and am wondering if anyone knows where I might find an
example of, say, clicking a button or link, which then opens an editable
textarea.

Thank you, Ike


Untested:

<form>
<textarea name="mytextarea" id="mytextarea"
style="display:none;"></textarea>
<input type="button" name="mybutton" value="open"
onclick="document.getElementById('mytextarea').sty le.display='block'">
</form>

This will exclude user who turned off javascript.

Greetings,
Woolly's weblab
http://www.woollymittens.nl/content/weblab/




Reply With Quote
Reply




Thread Tools
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



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.