CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Getting Text from TextArea

Print topic Send  topic

Author Message
cchipman

Posts: 7
Posted: 12/17/2004, 9:28 AM

I'm trying to get the text out of a text area on a dropdown box change event, with the following code

  
	var TestVar = document.composition.composition.value;  
	alert ("You typed: " + TestVar);  

The Name of the form is "composition" and the name of the TextArea is also "composition". However, the alert box always comes up without any of the text enterered into the text area.

Any suggestions?
_________________
Carl Chipman
View profile  Send private message
klwillis


Posts: 428
Posted: 12/17/2004, 9:34 AM

Try this instead:

var TestVar = documents.forms["composition"].composition.value;

There

Quote cchipman:
I'm trying to get the text out of a text area on a dropdown box change event, with the following code

  
	var TestVar = document.composition.composition.value;  
	alert ("You typed: " + TestVar);  

The Name of the form is "composition" and the name of the TextArea is also "composition". However, the alert box always comes up without any of the text enterered into the text area.

Any suggestions?

_________________
Kevin Willis, VP/CIO
HealthCare Information Technology Specialist
http://www.nexushealthcare.com
"Fast - Convenient - Quality-Care"

Medical Software Consulting Services
Email : klwillis@nexushealthcare.com
Skype : klwillis2006
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Web Database

Join thousands of Web developers who build Web applications with minimal coding.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.