Re: HTML_AJAX question
| From: | Justin Patrin | Date: | Mon, 01 May 2006 18:29:18 +0000 |
| Subject: | Re: HTML_AJAX question | ||
| References: | 1 2 3 4 5 6 7 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-23908@lists.php.net to get a copy of this message | ||
On 5/1/06, Nicolás Eugenio Ozimiça <nozimica@gmail.com> wrote:
Thanks! I made a little, and very simple test: http://anakena.dcc.uchile.cl/~nozimica/inmob/test/ When you click "comenzar test" button, a QF appears, with a required text box, and another button. If no text is given to the box, it will show the classical JS message of error, made by QF. If the test passes, the text is shown below the form.A bit off topic, but if you're still using the alert-style error messages you may want to check this out: http://pear.reversefold.com/qf_DHTMLRules_and_SoftRequired.php
Again, no problem with Firefox, but no way with IE... If you can help me, I should appreciate it very much! Thanks! On 5/1/06, Joshua Eichorn <josh@bluga.net> wrote: If you can post a test case somewhere i'll take a look some time this week. -josh Nicolás Eugenio Ozimiça wrote:-- Justin PatrinI'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) {Notif (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.even a JavaScript error (of those that simply tells the line of codethattriggered 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:itOn 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 codewiththe setInnerHTML function of HTML_AJAX_Util, doesn't work with IE.Worksfine with firefox, but when I got the idea to test my sistem in IE,didn't work...What's the code you're trying to set? Do you get any errors? Arpad