Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem Validating html:file

 
Vijay RamaRaju
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.,
I have a problem while trying to validate <html:file> control. When the user types in the invalid textual information in the browse button., when i submit the form it is giving the javascript error saying the file control is null or not an object. Any Solution.


--Regards
VijayRamaRaju.
 
Brent Sterling
Ranch Hand
Posts: 948
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here is some code where I perform some validation in my execute method. I am not sure how to do client side java script validation or if this validation could be performed by the validation framework. I don't see a reason why this could not be done in the form's validate method (and now I am wondering why I am not doing that).


If somebody else has a better way of validating this, please pass it along.

- Brent
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic