Hello, I've got this nasty problem... I've this combobox:
<div dojoType="dojo.data.ItemFileReadStore" jsId="dataOperatori"
url="jazzFunzioni.php?action=operatori"></div>
<!-- Form di accesso -->
<div id="DialogDiAccesso" dojoType="dijit.Dialog" onCancel="main" title="Accesso a Jazz" draggable="false">
<form id="FormDiAccesso" dojoType="dijit.form.Form">
Operatore:<input name="comboOperatore" id="operatore"
dojoType="dijit.form.ComboBox"
store="dataOperatori"
searchAttr="name"
autocomplete="false">
Parola chiave:<input dojoType="dijit.form.TextBox" type="password" id="password">
<p align="right">
<button dojoType="dijit.form.Button" onClick="loginOkClick();">Entra</button>
</form>
</div>
Everything works perfectly on firefox and chrome. But not on IE7, giving an error stating dojo.data.ItemFileReadStore: Invalid Item argument.
The JSON line that the php returns is:
I really don't get the problem... it was working so fine... :((((
-dario.

Are you using the PHP
Are you using the PHP function "json_encode"? Try this for the JSON. Double Quotes.
{"identifier":"name","items":[{"name": "adriano"},{"name": "agostino"},{"name": "daniela"},{"name": "donatella"},{"name": "fabio"},{"name": "flavio"},{"name": "giulia"},{"name": "halley"},{"name": "lucio"},{"name": "marco"},{"name": "mauro"},{"name": "paolo"}]}
same problem
The problem is that it does not charge anything from php and whether from txt
div dojoType="dojo.data.ItemFileReadStore" jsId="stateStore" url="carga_datos.php">
input dojoType="dijit.form.FilteringSelect"
store="stateStore"
searchAttr="name"
name="state1"
autocomplete="true"
And what PHP is returned:
{"identifier":"abbreviation","items":[{"name":"CHICLAYO","label":"CHICLAYO","abbreviation":"00"},{"name":"CHICLAYO","label":"CHICLAYO","abbreviation":"01"},{"name":"CHONGOYAPE","label":"CHONGOYAPE","abbreviation":"02"},{"name":"PATAPO","label":"PATAPO","abbreviation":"17"},{"name":"POMALCA","label":"POMALCA","abbreviation":"18"},{"name":"PUCALA","label":"PUCALA","abbreviation":"19"},{"name":"TUMAN","label":"TUMAN","abbreviation":"20"}]}
But if you said to a TXT if it works .....
Thanks for the help