cvs: peardoc /en/package/html/html-quickform-advmultiselect/appendix examples-multiple2.xml

[email protected] ("Laurent Laville")
Newsgroups php.pear.doc
Message-ID <cvsfarell1233263354@cvsserver>
farell		Thu Jan 29 21:09:14 2009 UTC

  Modified files:              
    /peardoc/en/package/html/html-quickform-advmultiselect/appendix	
                                                                   	examples-multiple2.xml 
  Log:
  sync with qfams_multiple_2.php,v 1.4
  
http://cvs.php.net/viewvc.cgi/peardoc/en/package/html/html-quickform-advmultiselect/appendix/examples-multiple2.xml?r1=1.2&r2=1.3&diff_format=u
Index: peardoc/en/package/html/html-quickform-advmultiselect/appendix/examples-multiple2.xml
diff -u peardoc/en/package/html/html-quickform-advmultiselect/appendix/examples-multiple2.xml:1.2 peardoc/en/package/html/html-quickform-advmultiselect/appendix/examples-multiple2.xml:1.3
--- peardoc/en/package/html/html-quickform-advmultiselect/appendix/examples-multiple2.xml:1.2	Wed Jan 28 22:25:14 2009
+++ peardoc/en/package/html/html-quickform-advmultiselect/appendix/examples-multiple2.xml	Thu Jan 29 21:09:14 2009
@@ -40,7 +40,7 @@
  * that can be display in one or two select box mode.
  * This example demonstrate the new feature of version 1.3.0 : Live Counter
  *
- * @version    $Id: examples-multiple2.xml,v 1.2 2009/01/28 22:25:14 farell Exp $
+ * @version    $Id: examples-multiple2.xml,v 1.3 2009/01/29 21:09:14 farell Exp $
  * @author     Laurent Laville <[email protected]>
  * @package    HTML_QuickForm_advmultiselect
  * @subpackage Examples
@@ -157,7 +157,7 @@
                                    'cars list dual select');
 $buttons[] =& $form->createElement('checkbox', 'multiselect2', null,
                                    'fruit list dual select');
-$form->addGroup($buttons);
+$form->addGroup($buttons, null, '&nbsp;');
 ?>
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
     "http://www.w3c.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
@@ -210,15 +210,7 @@
 ?>
  -->
 </style>
-<script type="text/javascript" src="qfamsHandler.js"></script>
-<script type="text/javascript">
-<!--
-window.qfamsName = new Array();
-window.qfamsName[0] = 'cars';
-window.qfamsName[1] = 'fruit';
-window.addEventListener('load', qfamsInit, false);
-//-->
-</script>
+<?php echo $ams1->getElementJs(false); ?>
 </head>
 <body>
 <?php
@@ -231,6 +223,14 @@
 }
 $form->display();
 ?>
+<script type="text/javascript">
+//<![CDATA[
+function init() {
+    QFAMS.init(['cars','fruit']);
+}
+window.addEventListener('load', init, false);
+//]]>
+</script>
 </body>
 </html>
       ]]>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.