<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<tt><html><head><title>Form Document</title></tt>
<br><tt><script language="JavaScript"></tt><tt></tt>
<p><tt>function sizeTextArea(){</tt>
<br><tt>var winWidth=top.document.all.mainFrame.width;</tt>
<br><tt>var winHeight=top.document.all.mainFrame.height;</tt>
<br><tt>// offsets of 20 and 40 prevented scrollbars appearing on window</tt>
<br><tt>document.myForm.textvar.style.width=winWidth-20;</tt>
<br><tt>document.myForm.textvar.style.height=winHeight-40;</tt>
<br><tt>}</tt><tt></tt>
<p><tt></script></tt>
<br><tt></head></tt>
<br><tt><body onload="sizeTextArea();"></tt>
<br><tt><form name="myForm" method="post" action=""></tt>
<br><tt><textarea cols="70" rows="25" name="textvar" id="textvar" wrap="off"></tt>
<br><tt></form> </body> </html></tt>
<p>phumes1@home.com wrote:
<blockquote TYPE=CITE>I have in previous emails. I have attached a screen
capture of my template.
<br>It is done with frames.
<br>Notice the file being pulled in (Frame B). This window is done with
a
<br><TEXTAREA>...</TEXTAREA> tags.
<p>The code for the textarea is as follows:
<p><textarea cols="70" rows="25" name="textvar" id="textvar" wrap="off">
<p>What I want to do is using Javascript (or anything) to figure out the
width
<br>and height of frame "B" and
<br>pass those coordinates to the "cols" and "rows" of the <textarea>
tag. So
<br>when the window is resized
<br>by the user the textarea will also resize accordingly.
<p> From previous emails is it my understanding that the "cols" &
"rows" of
<br>the textarea is "characters"
<br>and *not* pixels?
<p> ------------------------------------
<br>|
Top Nav
|
<br> ------------------------------------
<br>|
|
|
<br>|
|
|
<br>|
|
|
<br>| A
|
B
|
<br>|
|
|
<br>|
|
|
<br>|
|
|
<br> ------------------------------------
<br>|
Bot Nav
|
<br> ------------------------------------
<br> </blockquote>
<p>--
<br>Shop@ssistant Add-ons and Developer Workshops
<br><A HREF="http://www.aflyingstart.net/addons/">http://www.aflyingstart.net/addons/</A>
<p>Enquiries regarding Shop@ssistant Classic training :
<br>Call 01256 880770
<p>Rodney Myers
<br>Based in Oxford, England
<br>Technical Director, Shop@ssistant eCommerce Solutions
<br> </html>