Because client side processing occurs AFTER the page loads, you would likely
need to store these values as a session variable.

Why not use <textarea style="width: 50%"></textarea> instead?  Only 5% of
the people run Netscape, so it'll probably take six or seven months before
anyone is effected by this =)

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Monday, June 18, 2001 4:20 AM
To: CF-Talk
Subject: Re: Passing Javascript variables to CF?



I have the following Javascript returning the frame height and width.

<script language="Javascript">

function sizeTextArea(){
var winWidth=top.document.all.mainFrame.width;
var winHeight=top.document.all.mainFrame.height;
// offsets of 20 and 40 prevented scrollbars appearing in window
document.myForm.textvar.style.width=winWidth-20;
document.myForm.textvar.style.height=winHeight-40;
}
</script>

How can I get the width and height from the above script into a CF variable 
so I can pass this to a <texttarea>...</textarea>
tag?
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to