Title: validType + combogrid Post by: rezzonico on October 19, 2015, 07:18:18 AM Hi all,
I have a edatagrid with two fields. The first field is a "combogrid", the second field is a "validatebox". On both fields I use "validType" with remote option: validType: 'remote["/cgi-bin/dovalidate.cgi", ""]' All works as expected. The only problem is that on "combogrid" the program "dovalidate.cgi" is executed twice. Is it possible to avoid this ? Is it allowed to use "validType" with a "combogrid" ? Here the code: http://195.144.40.170/EEE/index.html Thanks for any help. Miche Title: Re: validType + combogrid Post by: stworthy on October 19, 2015, 07:25:50 PM Please try to use the async 'remote' validate type instead.
Code: (function($){ Title: Re: validType + combogrid Post by: rezzonico on October 20, 2015, 01:06:08 AM Hi stworthy,
thanks a lot for your help. After adding your code the program is executed only once but I see two other problems: 1) When I click on the field the message "Please fix this fileld" appears for a short time, even if the program "dovalidate.cgi" return "true". You can see this selecting the following link: http://195.144.40.170/EEE/index.html 2) When (after selecting the first line) I select the second line, the error "TypeError: _48d is undefined" appears. Is it possible to fix these two problems ? Thanks Miche Title: Re: validType + combogrid Post by: stworthy on October 20, 2015, 01:29:39 AM You can modify the async 'remote' validator freely to meet your requirement. Please refer to the updated code above.
Title: Re: validType + combogrid Post by: rezzonico on October 21, 2015, 12:39:16 PM Hi stworthy,
it works perfectly ! Thanks Miche |