Re: 2 questions
| From: | Joshua Eichorn | Date: | Wed, 07 Mar 2007 21:04:59 +0000 |
| Subject: | Re: 2 questions | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-26768@lists.php.net to get a copy of this message | ||
Tiron Adrian wrote:
Hello, I would have 2 questions if i may 1) I saw two examples on the net using HTML Quickform and HTML Ajax I was curios ,what does the following line do? $form =& new HTML_QuickForm('frmTest', 'post',$_SERVER['PHP_SELF'],'',-josh"onsubmit=\"return !HTML_AJAX.formSubmit(this, 'target');\"");the "onsubmit=\"return !HTML_AJAX.formSubmit(this, 'target');\"" i don't understand. When the form is submitted HTML_AJAX sends the form using an AJAX requests cancels the normal form submission, and then replaces the innerHTML of an element with the id of target with the generated results.