Question: We are using IT Hit WebDAV Ajax Library for our project to read and edit documents. 

We have an issue on opening non-office files like pdf, txt.

When we try to open the file, the java applet (ajaxfilebrowser) is used to open the file. It shows a messagebox to allow the browser to run the exe and then the file is not opened. Instead My Documents folder is opened from the desktop.

Please advise how can we open the file?

Answer: 
This behavior is by design. From the [documentation](http://jqueryvalidation.org/documentation/)

> 
> Before a field is marked as invalid, the validation is lazy: Before submitting the form for the first time, the user can tab through fields without getting annoying messages – they won't get bugged before having the chance to actually enter a correct value
>  Once a field is marked invalid, it is eagerly validated: As soon as the user has entered the necessary value, the error message is removed
> 
> 
>
Use jquery. You can use [focusout()](http://api.jquery.com/focusout/) or [blur()](http://api.jquery.com/blur/).
Take a look at examples, might help.