File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes urgent plz Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "urgent plz" Watch "urgent plz" New topic

urgent plz

Rishi Chopra
Ranch Hand

Joined: Mar 07, 2004
Posts: 108
i have a requirement in which i have to display a table with 7 columns
with few columsn can accept value from a list(values from db)

initially there will b one row then i give the user an addrow button that will create another row for him

now this addrow in javascript creates a new row now i want to validate whether some values in some colums are same with respect to previous rows then i want to pop up a message

i wrote a javascript function then created a row for me

now i am confused over wat to do i can i get refernce to all rows value and how can i validate them on the clinet side only before submitting my form

Life is Beautiful Learn to See it.........
Mohd. Yakub

Joined: Nov 25, 2005
Posts: 18
Compare the value column-wise related to previously collected column values and return the index value if true else return the -1 which suggest a new entery in that specific column.
Popup message columnwise.
I agree. Here's the link:
subject: urgent plz
It's not a secret anymore!