Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.3.3

Bug #11411 javascript validation functions don't work with ajax
Submitted: 2007-06-23 01:38 UTC
From: xaglen Assigned: wiesemann
Status: Closed Package: HTML_QuickForm_DHTMLRulesTableless (version 0.3.1)
PHP Version: Irrelevant OS: irrelevant
Roadmaps: (Not assigned)    
Subscription  


 [2007-06-23 01:38 UTC] xaglen (Glen Davis)
Description: ------------ First, excellent package. Love it and use it constantly. One small bug I've encountered: if I create a form with HTML_Quickform_DHTMLRulesTableless and load it via XMLHttpRequest the client-side validation functions won't always work. This is due to the way that they are defined. On line 140, for example, you have function qf_errorHandler (element, _qfMsg) { If you simply change the function calls like so qf_errorHandler = function (element, _qfMsg) { Then the functions will work in more cases. Similar changes could be made on lines 224 and 266. You can see a little bit more about the problem here http://code.google.com/p/modalbox/wiki/DefiningJavaScript

Comments

 [2007-06-25 16:40 UTC] wiesemann (Mark Wiesemann)
Thank you for your bug report. This issue has been fixed in the latest released version of the package, which you can download at http://pear.php.net/get/HTML_QuickForm_DHTMLRulesTableless