A
Angel
Hi,
I have a page which shows a matrix of names and grades for given period. All
the grades fields must be editable and
they can be up to 200 fields (20 students with 10 grades each)
Since there are a lots of fields I do not want to go back and forth to
validate entered values on any change.
I decided that this may be achieved with some JavaScript functions to
validate some controls and to calculate average and total values of other
controls on change of any editable fields.
On change value of input fields JavaScript function will check if this is a
valid value an if so it will calculate values of average and total fields
and update their values.
I use Textbox web control, I also add Attribute("onChange","return
validate(string id) ) to control to make it call proper JavaScript
function.
The valid grades are loaded from Database and need to be injected at run
time in the client html.
My problem is that I do not know how to inject(insert) this values as an
array in the client html so my function will use this values to validate the
user entry;
Thanks
Angel
I have a page which shows a matrix of names and grades for given period. All
the grades fields must be editable and
they can be up to 200 fields (20 students with 10 grades each)
Since there are a lots of fields I do not want to go back and forth to
validate entered values on any change.
I decided that this may be achieved with some JavaScript functions to
validate some controls and to calculate average and total values of other
controls on change of any editable fields.
On change value of input fields JavaScript function will check if this is a
valid value an if so it will calculate values of average and total fields
and update their values.
I use Textbox web control, I also add Attribute("onChange","return
validate(string id) ) to control to make it call proper JavaScript
function.
The valid grades are loaded from Database and need to be injected at run
time in the client html.
My problem is that I do not know how to inject(insert) this values as an
array in the client html so my function will use this values to validate the
user entry;
Thanks
Angel