This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Create a grid and capture values under them

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

This is a requirement , i need to work on , there is a grid like structure ( similar to a table with many rows and cells in form of TextFields)

When the user fills up these cells and enter on submit button , i need to validate those values under onClick button .

Please give me an idea as how to proceed with this task ??

Thanks in advnace .

 
Harpreet Singh janda
Ranch Hand
Posts: 317
Eclipse IDE
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What type of validation do you want

You can provide the id to each text box like text1,text2,..............textn ad on onClick event you can call a java script method where you can iterate on a loop from 1 to n (take a vaiable i for iteration) and get the element by using getElemntById('text'+i) method and perform the validation after getting the value of the elmement like:


 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Harpreet , Thanks for the idea .

i know how to ceate grid in javascript using for loop , but didn't knew the extraction logic of them . Now its clear .
Thanks man once again .
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic