Timeline for Passing .net array to javascript
Current License: CC BY-SA 3.0
Post Revisions
12 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Mar 26, 2014 at 16:47 | vote | accept | Ezi | ||
| Mar 26, 2014 at 16:36 | comment | added | Smeegs | @Ezi, thanks :) it's been posted. | |
| Mar 26, 2014 at 16:36 | answer | added | Smeegs | timeline score: 1 | |
| Mar 26, 2014 at 16:08 | comment | added | Ezi | Got it... stackoverflow.com/questions/1086404/string-to-object-in-js, @Smeegs please post you're comment as an answer so I could accept it and close that. | |
| Mar 26, 2014 at 15:59 | comment | added | Ezi | after digging I see that the problem here is that javascript translate it to a string not a object, I guess I need to cast it or something on the javascript side. | |
| Mar 26, 2014 at 14:24 | comment | added | Smeegs |
You're inputing an array of strings and expecting to get an array of objects out. You need to create a simple class with a location property, and serialize an array of those objects.
|
|
| Mar 26, 2014 at 14:18 | comment | added | Ezi | I added a sample array output in the question. | |
| Mar 26, 2014 at 14:18 | history | edited | Ezi | CC BY-SA 3.0 |
added 190 characters in body
|
| Mar 26, 2014 at 3:36 | comment | added | Amit Joki | What is your expected output? | |
| Mar 26, 2014 at 3:12 | history | edited | Ezi | CC BY-SA 3.0 |
edited title
|
| Mar 26, 2014 at 2:48 | comment | added | Ezi | someone here has anything to add? any suggestion? – | |
| Mar 25, 2014 at 20:21 | history | asked | Ezi | CC BY-SA 3.0 |