SelectAjax (english)

Selectajax is a very little component  to ease creating combo-selects (or nested selects). I would appreciate if anyone wants to see it, suggest improvements and considerations about if it is useful. It is implemented with Ajax and MooTools.


You can download the component here: Download SelectAjax

For use it, you should install the component SelectAjax in your Joomla! and create combo-selects adding this snipped of code in a form of your component template (com_your_Component/frontend/views/vista/tmpl/template.php):

Inside <?php ...?>:

JHTML::_('behavior.mootools');
$js='/components/com_selectajax/assets/combo.js';
$doc =& JFactory::getDocument();
$doc->addScript($js);

 

Use the examples included in SelectAjax:
Inside <form> ... </form>:

<h1>MUNICIPIOS</h1>
<select name="provincia" id="provincia" class="selectajax" bbdd="provimuni" level="1">
<option>Charge...</option>
</select><br />
<select name="municipio"  class="selectajax" bbdd="provimuni" level="2">
<option>Primero seleccione la provincia.</option>
</select><br />



If you have any sugestion, please e-mail me. Thanks in advance.

NOTE: if you want, send us an e-mail ( Esta dirección electrónica esta protegida contra spam bots. Necesita activar JavaScript para visualizarla ) including the items you wont in your combo. We'll give you a customized component SelecAjax.

Nota: este componente se suministra sin ninguna garantía.