Re: HTML_AJAX question

From: Date: Sun, 30 Apr 2006 01:28:18 +0000
Subject: Re: HTML_AJAX question
References: 1 2 3 4  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-23894@lists.php.net to get a copy of this message
I'm trying to set the functions QuickForm makes to perform client side validation. I made a little function, that creates the code (given by QF to the onSubmit event of the form), but I give it to a button too, so that, when it gets clicked, the validation is performed anyway. This is the function...: function getOnClickValidation($jsFuncText) {
       if (count($this->_rules) > 0) {
           return 'try { var myValidator = validate_' .
$this->_attributes['id'] . '; } catch(e) { return true; } if (myValidator( this.form)) { '.$jsFuncText.'}';
       }
       return $jsFuncText;
} so, when I get a QF, that is not loaded by the first app, but instead by an ajax call after that load, it brings with it that form, and all the validation it has. With Firefox, no problem at all. But with IE, it simply does nothing. Not even a JavaScript error (of those that simply tells the line of code that triggered the error). Not even submits the form, if there are errors, or if there aren't. Simply nothing... What should it be? Or it's an error, but that is "forgiven" by Firefox?? On 4/29/06, Arpad Ray <arpad@rajeczy.com> wrote:
On Saturday 29 April 2006 15:18, Nicolás Eugenio Ozimiça wrote: Hi all! I don't know well if it's happening only to me, but setting JS code with the setInnerHTML function of HTML_AJAX_Util, doesn't work with IE. Works fine with firefox, but when I got the idea to test my sistem in IE, it didn't work... What's the code you're trying to set? Do you get any errors? Arpad


« previous php.pear.general (#23894) next »