re: stuck on first time using JSON
I want to take the data from my form, convert it into a JSON object to
transfer to the server.
But, I am still new to javascript, and am having a problem with how to
loop through and build up my object.
I will end up having an array of arrays by the time I am done though, I
believe, since I each student has an id and a grade, and I want to put
all of them into the object.
Is there an example where someone is dynamically building up a
JSONobject from within a loop?
Thank you.
.
Relevant Pages
- Re: Accessing text form fields name=field[label]
... For the Reset action I have a JavaScript function to Reset all the form fields. ... I cannot find the right syntax to address them as an array and I am beginning to think that JavaScript does not see them as an array. ... I loop though *every* form element and if substring= 'func[' I set the SelectedIndex for that element to 0. ... what is the correct syntax for:: ... (comp.lang.javascript) - Re: How do I setup php script to return a browser page?
... > client-side page in my case ... > content via an array, have server A process the form, and rebuild (via ... an event handler for the 'onsubmit' event in javascript that would parse the ... (comp.lang.php) - Re: array undefined error
... existent array element. ... loop, with javascript, as is being done here, the index variable being ... undefined array element, causing the OPs error. ... Prototype.js was written by people who don't know javascript for people ... (comp.lang.javascript) - Re: [PHP] creating an xls file from mysql data
... That'll get everything for all of those id's and then you can loop over ... it is not coming across as an array so the foreach is throwing an error ... how can I make this an array in the proper format. ... This number are selected in a checkbox and passed with a javascript to the script should I be converting them to an array in the javascript. ... (php.general) - Re: vb script to detect if printer is installed and then install it from a list if not? (2003 server
... 'set the array size 1 less than total number ... '.DeviceID is the "name" listed in the folder on the server (not ... '**we loop through all possible printers and compare to ... (microsoft.public.scripting.vbscript) |
|