cvs: peardoc /en/package/html/html-quickform intro-faq.xml /en/package/html/html-quickform/html-quickform applyfilter.xml
| From: | Alexey Borzov | Date: | Wed, 05 Apr 2006 15:02:23 +0000 |
| Subject: | cvs: peardoc /en/package/html/html-quickform intro-faq.xml /en/package/html/html-quickform/html-quickform applyfilter.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-7729@lists.php.net to get a copy of this message | ||
avb Wed Apr 5 15:02:23 2006 UTC
Modified files:
/peardoc/en/package/html/html-quickform intro-faq.xml
/peardoc/en/package/html/html-quickform/html-quickform
applyfilter.xml
Log:
FAQ updates based on bugs #6427, #5695. Fix misleading docs for applyFilter() (bug #6970)
http://cvs.php.net/viewcvs.cgi/peardoc/en/package/html/html-quickform/intro-faq.xml?r1=1.1&r2=1.2&diff_format=u
Index: peardoc/en/package/html/html-quickform/intro-faq.xml
diff -u peardoc/en/package/html/html-quickform/intro-faq.xml:1.1
peardoc/en/package/html/html-quickform/intro-faq.xml:1.2
--- peardoc/en/package/html/html-quickform/intro-faq.xml:1.1 Thu Sep 30 10:21:01 2004
+++ peardoc/en/package/html/html-quickform/intro-faq.xml Wed Apr 5 15:02:23 2006
@@ -1,4 +1,4 @@
-<!-- $Revision: 1.1 $ -->
+<!-- $Revision: 1.2 $ -->
<refentry id="package.html.html-quickform.intro-faq">
<refnamediv>
<refname>QuickHelp</refname>
@@ -114,6 +114,71 @@
</para>
</answer>
</qandaentry>
+
+ <qandaentry>
+ <question>
+ <para>
+ QuickForm generates code which does not validate as XHTML Strict!
+ </para>
+ </question>
+ <answer>
+ <para>
+ QuickForm does add a <literal>'name'</literal> attribute
to the <literal><form></literal> tag,
+ which is invalid in XHTML Strict. Quickform does not depend on that attribute since
release 3.2.2, and it's only
+ kept for backwards compatibility. If you desire XHTML Strict compliance and
<emphasis>your</emphasis> code does not depend
+ on said attribute, you can remove it via
<function>removeAttribute</function> method.
+ </para>
+ </answer>
+ </qandaentry>
+
+ <qandaentry>
+ <question>
+ <para>
+ The <literal>'required'</literal> rule does not work for
my elements!
+ </para>
+ </question>
+ <answer>
+ <para>
+ <itemizedlist>
+ <listitem>
+ <simpara>
+ If your element is a file upload, you should use
<literal>'uploadedfile'</literal> rule instead.
+ </simpara>
+ </listitem>
+ <listitem>
+ <simpara>
+ If your element is a group, you should use
+ <link
linkend="package.html.html-quickform.html-quickform.addgrouprule"><function>addGroupRule</function></link>
+ method instead of
+ <link
linkend="package.html.html-quickform.html-quickform.addrule"><function>addRule</function></link>.
+ This applies to group-based elements like
<literal>'date'</literal> and
<literal>'hierselect'</literal>
+ as well.
+ </simpara>
+ </listitem>
+ </itemizedlist>
+
+ </para>
+ </answer>
+ </qandaentry>
+
+
+ <qandaentry>
+ <question>
+ <para>
+ How do I change <literal>* denotes required field</literal> and
<literal>Invalid information entered. / Please correct these fields.</literal>
+ validation messages?
+ </para>
+ </question>
+ <answer>
+ <para>
+ You should use <link
linkend="package.html.html-quickform.html-quickform.setrequirednote"><function>setRequiredNote</function></link>
+ and <link
linkend="package.html.html-quickform.html-quickform.setjswarnings"><function>setJsWarnings</function></link>
+ methods, respectively.
+ </para>
+ </answer>
+ </qandaentry>
+
+
</qandaset>
</refsect1>
http://cvs.php.net/viewcvs.cgi/peardoc/en/package/html/html-quickform/html-quickform/applyfilter.xml?r1=1.2&r2=1.3&diff_format=u
Index: peardoc/en/package/html/html-quickform/html-quickform/applyfilter.xml
diff -u peardoc/en/package/html/html-quickform/html-quickform/applyfilter.xml:1.2
peardoc/en/package/html/html-quickform/html-quickform/applyfilter.xml:1.3
--- peardoc/en/package/html/html-quickform/html-quickform/applyfilter.xml:1.2 Sat May 31 15:13:52
2003
+++ peardoc/en/package/html/html-quickform/html-quickform/applyfilter.xml Wed Apr 5 15:02:23 2006
@@ -1,4 +1,4 @@
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<refentry id="package.html.html-quickform.html-quickform.applyfilter">
<refnamediv>
<refname>HTML_QuickForm::applyFilter()</refname>
@@ -68,12 +68,6 @@
</thead>
<tbody>
<row>
- <entry><constant>QUICKFORM_NONEXIST_ELEMENT</constant></entry>
- <entry>Element '<parameter>$elName</parameter>' does not exist
in HTML_QuickForm::applyFilter()</entry>
- <entry>Tried to apply a filter to a non-existant element</entry>
- <entry>Check the element's name spelling</entry>
- </row>
- <row>
<entry><constant>QUICKFORM_INVALID_FILTER</constant></entry>
<entry>Callback function does not exist in QuickForm::applyFilter()</entry>
<entry>Tried to pass a name of a non-existant function as a callback</entry>