var tmpANArray = [];
for (var i in associatedPpl) {
tmpANArray.push(associatedPpl[i]);
}
alert('about to call toJSON on AssociatedPpl');
alert(tmpANArray);
// the next line fails because $.toJSON is getting fed a function
var jsonEncodedAssociatedPpl = $.toJSON(tmpANArray);
Quelle partie de JavaScript/jQuery suis-je absent?jQuery et Native JavaScript Array - erreur
MISE À JOUR La JS JSON lib a été jquery.json-1.3.min.js
Qu'est-ce que vous utilisez pour le $ .toJSON - qui ne fait pas partie de jquery. Utilisez-vous un plugin? – partkyle
Il utilise probablement http://code.google.com/p/jquery-json/. –
A quoi ressemble 'associatedPpl'? – Anurag