Ticket #268 ( Accepted )

Short Description add TextCapitalize
Entered By: PeteL When: 1999-03-11 10:22:41 Build: 1.03.28
Categories Type: Suggestion   Department: Product   Category: SurferScript Functions
In doing some work to make some 3270 ready to deploy to the Internet, one of the things I wanted to do was eliminate the horribly ugly ALL UPPER CASE 3270 STANDARD WAY TO DISPLAY DATA. What worked OK in some cases was to do a TESHOW TextLower(Screen(r,c,l)), then use JavaScript to alter the display of that data to "capitalize". Unfortunately, I couldn't get this approach to work within PRE tags, and it is an extra step. If we had a TextCapitalize function like TextLower and TextUpper, this could be done in a one-step process. I have noticed a difference in how this JS function works in NN vs. IE, and IE is (in my opinion) a little better here - it capitalizes letters after a blank, but also after special characters, so if you have "and/or", NN displays that as And/or, while IE renders it as And/Or. It would also be really nice if all these functions could be "hooked" to the TEAREA as well, like
TEAREA r c r c AS CLICKABLE JavaScript="function" TextLower
Append By: WindSurfer  When: 1999-05-11 15:22:04  New Status: Accepted
Comment Sounds like a fun function to implement someday :)