Ciao,
devo passare una struttura a piu' livelli simile a questa prelevata da questo sito
http://www.hunlock.com/blogs/Masteri...%29#quickIDX10
Ora...codice:var employees = { "accounting" : [ // accounting is an array in employees. { "firstName" : "John", // First element "lastName" : "Doe", "age" : 23 }, { "firstName" : "Mary", // Second Element "lastName" : "Smith", "age" : 32 } ], // End "accounting" array. "sales" : [ // Sales is another array in employees. { "firstName" : "Sally", // First Element "lastName" : "Green", "age" : 27 }, { "firstName" : "Jim", // Second Element "lastName" : "Galley", "age" : 41 } ] // End "sales" Array. } // End Employees
Non ho capito come crearla in Ajax.
Ovvero.
Una struttura ad un livello la so creare
Sicuramente e' una stupidata, ma non ci riesco.codice:// definizione Object var arrayFileJson=new Object(); // recupero variabili var typeCreateXml=$(this).val().substr(0,1); var idFile=$(this).val().substr($(this).val().indexOf('_')+1); //assegno variabili arrayFileJson.idFile=idFile; arrayFileJson.type=typeCreateXml; ...
Grazie in anticipo.
Ciao

Rispondi quotando
