Hi, 

I'm a newbie at using strus and have been trying to get client-side validation 
to work using Struts, but I 'm receiving a javascript error while trying to use 
the 
'required ' validation rule. The error in IE and FireFox both say: 

Error: 'required ' is undefined 

When I look at the generated javascript, it seems the object 'required' is not 
defined in the following generated function. Can anyone give me some guidance 
how to resolve this? I'd really appreciate it.  Hope to hear from you soon.
 
function validateRequired(form) { 
var isValid = true; 
var focusField = null; 
var i = 0; 
var fields = new Array(); 
oRequired = new required(); 
for (x in oRequired) { 
var field = form[oRequired[x][0]]; 
... <blah > <blah > 


Thanks in advance, 
 
-Paul


                
---------------------------------
 Start your day with Yahoo! - make it your home page 

Reply via email to