Rhonda,
The Text command is designed to work with INPUT elements, however the
command you've learned can be modified to work with TEXTAREA elements by
using:
Pause "<TEXTAREA>#woDESCRIPT#@") 'this Selects the TEXTAREA
Selected.value = "this is my description" 'this sets its value
The Selected property is a kind of "backdoor" to the web page, and we use it
to access it in non-standard ways like this. I don't have a TEXTAREA
element on which to explicitly test this script. I think it will work, but
if it doesn't, call our support line to fine tune it.
Rich McNeil
Boston Software Systems
866 653 5105 x 813 -or- 508 318 5327
www.bostonworkstation.com
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Rhonda Feldbauer
Sent: Friday, June 09, 2006 9:16 AM
To: Talk@BOSTONWORKSTATION.COM
Subject: [Talk] web script - help with <textarea>
Hello.
I have a script to enter data into a form on a web page. All my field
entries are working except a <TEXTAREA> on the page. Is there something
special to do to get text into a textarea?
Please help...
Excerpt:
' Pause and enter task summary
Pause "Summary ([*]): *<TD>@"
Text("<INPUT>#txtSummary#@") = Task.TaskSummary
' Pause and enter callback number
Pause "Call-back number: ([*]): <TD>@"
Text("<INPUT>#txtPhone#@") = Task.CallbackNumber
' Pause and choose priority from dropdown list
Pause " High (Within a Week)Low (No R*<SELECT>#PRIORITY#@"
GetListItem Task.TaskPriority
' Pause and choose task type from dropdown list
Pause " 3M CodingAntivirusAPCAutodata*<SELECT>#TYPEID#@"
GetListItem Task.TaskType
' Enter task description
Pause "Description ([*]): <TBODY>@"
Text("<TEXTAREA>#woDESCRIPT#@") = "this is my description" <<<<<----
This text will not insert.
I've also attached a screen shot.
Thanks,
Rhonda Feldbauer, MSCS
Newnan Hospital