Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Parsing a dynamic text box value client side

 
Logged in as: Guest
arrSession:exec spGetSession 2,2,841
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Parsing a dynamic text box value client side
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Parsing a dynamic text box value client side - 5/14/2003 4:37:54 PM   
  texter

 

Posts: 1
Score: 0
Joined: 5/14/2003
From:
Status: offline
Hey,
Basically have a number of text box rows generated dynamically with the same name. This gets posted to the same page as a comma delimted string.
The Problem: If a user enters a comma the string gets disjointed.
Need to parse(remove commas)the dynamic text box values generated on client side.

Any Idea how to do it?
Cant seem to find any simply laid out method...
prefer vbscript client side solution only.
 
 
Post #: 1
 
 Re: Parsing a dynamic text box value client side - 5/15/2003 9:54:17 AM   
  DeadManWalking

 

Posts: 1
Score: 0
Joined: 5/8/2003
From: USA
Status: offline
Instead of dynamically generate the text boxes with the same name...add a number to the end so it will be txt1, txt2, etc...

Then do a post to the next page and do a loop through the request.form collection. Here is a link to some vbscript code to do that: http://www.programmersresource.com/tips/tip104.asp


If you really want to do the get method and get rid of commas, you can do that on the keypress event. If I find the code I'll post that code.

HTH

(in reply to texter)
 
 
Post #: 2
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> WSH & Client Side VBScript >> Parsing a dynamic text box value client side Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts