This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes TextArea processing Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "TextArea processing " Watch "TextArea processing " New topic
Author

TextArea processing

Don Martino
Greenhorn

Joined: Oct 04, 2008
Posts: 25
New to javascript
I have a TextArea box defined. I want user to enter multiple entries delemited by ;. e.g. 1111;22333;112;55666666;

I want to retrieve each set of numbers. Would I use an array and check each byte? What would be best method?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56204
    
  13

Originally posted by Don Henderson:
I want to retrieve each set of numbers.
Where? On the client? On the server? If the latter, with what?


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
Don Martino
Greenhorn

Joined: Oct 04, 2008
Posts: 25
This will be processed client side. I want to process each set of numbers up to the semi-colon. I want to make sure that they are numeric and a maximum of 8 characters.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15357
    
    6
regular expression should be all you need.

Eric
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56204
    
  13

Have you checked the methods of the String object to see if there's anything there that might help you?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: TextArea processing
 
Similar Threads
Textarea with flexible row-length, How?
displaying text in textArea
How to reassign STDIN to a JTextArea??
AWT TextArea not recognising focus with Tab key
Text Area Problem... Pls Help