QuickForm: accessing javascript template?
| From: | Mark Steudel | Date: | Fri, 14 Oct 2005 19:02:21 +0000 |
| Subject: | QuickForm: accessing javascript template? | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-21480@lists.php.net to get a copy of this message | ||
So I know that you can access the default templates and change them like so:
$renderer =& $form->defaultRenderer();
$renderer->setFormTemplate('<form{attributes}><table
class="newclass" border="0">{content}</table></form>');
I was wondering if you could do the same for the javascript that is
generated? I'm sure I could do a preg_replace on the all the javascript, but
it seems like going straight to the source would be a better method.
Mark