The following cf and js code works fine with both IE7 and FF2 (as you can see 
it does auto expand of textarea so that the user can view all the data input)
<cfparam name="rowNum" default="3">
 
<cfform name="cap" id="auto" action="#CGI.script_name#?" method="post">
<cftextarea name="yourWords" id="noteid2" cols="70" rows="#rowNum#" wrap="hard" 
                              
onKeyDown="javascript:if (document.getElementById('noteid2').value.length > (70 
* #rowNum#) && ((document.getElementById('noteid2').rows * 
document.getElementById('noteid2').cols) <= 
document.getElementById('noteid2').value.length)) 
{document.getElementById('noteid2').rows += 1};"
</cfform>

However, when I incorporate it into a template the auto expand no longer works, 
instead the usual scrool bar shows, any idea as to the cause of such a state?

Thanks. 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:299275
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to