Return to Snippet

Revision: 2491
at March 1, 2007 01:18 by juno


Initial Code
<form method="get" id="f">
            <table>
                <tr>
                    <td>Country:</td>
                    <td><select name="country" id="country"></select></td>
                </tr>
                <tr>
                    <td>State/Region:</td>
                    <td><select name="region" id="region"></select></td>
                </tr>
                <tr>
                    <td>City:</td>
                    <td><select name="city" id="city"></select></td>
                </tr>
            </table>
        </form>

        <?= $ajax->attachWidgets(array('country' => 'country',
                                       'region'  => 'region',
                                       'city'    => 'city')) ?>

        <?= $ajax->loadJsApp(true) ?>

Initial URL
http://ajax.zervaas.com.au/examples/CountryRegionCityJax/index.phps

Initial Description
reference for create own ajax helper in CakePHP

Initial Title
ajax helper -- dynamically dropdown list

Initial Tags
js, cakephp

Initial Language
HTML