Login Register

option

Address auto fill in a form

I am trying to build a auto fill address form, I have a db that convert to json with all the countries, then I want the next <select> box load the json from the php file mydb.php?action=1&id=MyCountryId.

I have the idea working with onchange and load it up from php/xml, but how I do it with dojo/json

<div dojoType="dojo.data.ItemFileReadStore" jsId="stateStore<?php echo $micro ?>" url="getcity.php"></div>
<input dojoType="dijit.form.FilteringSelect" store="stateStore<?php echo $micro ?>
" name="country" value="<?php echo $micro ?>">

Thanks,
Shlomo

Option value and Combobox...

Hi to all,
I would Use the Dojo Widget Combobox for my code :

************************************************************
[select name="marca" dojoType="dijit.form.ComboBox" autocomplete="false" onChange="setVal1"]
[OPTION VALUE="APRILIA"]APRILIA[/OPTION]
[OPTION VALUE="BENELLI"]BENELLI[/OPTION]

[OPTION VALUE="BIMOTA"]BIMOTA[/OPTION]
[OPTION VALUE="BMWITALIAMOTO"]BMW ITALIA MOTO[/OPTION]
[OPTION VALUE="BUELL"]BUELL[/OPTION]
[OPTION VALUE="CAGIVA"]CAGIVA[/OPTION]
[/select]
***************************************************************

Syndicate content