Welcome Guest, Not a member yet? Register   Sign In
Passing JSON data to the server (?)
#10

[eluser]Jay Turley[/eluser]
[quote author="taewoo" date="1209611814"]Hi everyone.
Is there a way to pass the JSON data object from client to server w/o enumerating thru the data (list)?[/quote]

If you have an existing JSON object, just use the XmlHttpResponse object to pass it to a controller as a POST request. As others have mentioned, using a framework like jQuery is a huge help, instead of writing it from scratch.

If you don't have the existing JSON data object, then you will have to create it before posting it, but fortunately JSON is just a javascript array (essentially) and is very easy to create.


Messages In This Thread
Passing JSON data to the server (?) - by El Forum - 04-30-2008, 04:16 PM
Passing JSON data to the server (?) - by El Forum - 04-30-2008, 04:58 PM
Passing JSON data to the server (?) - by El Forum - 04-30-2008, 05:19 PM
Passing JSON data to the server (?) - by El Forum - 05-01-2008, 04:57 AM
Passing JSON data to the server (?) - by El Forum - 05-01-2008, 08:03 AM
Passing JSON data to the server (?) - by El Forum - 05-01-2008, 08:32 AM
Passing JSON data to the server (?) - by El Forum - 05-01-2008, 08:56 AM
Passing JSON data to the server (?) - by El Forum - 05-01-2008, 09:14 AM
Passing JSON data to the server (?) - by El Forum - 05-01-2008, 09:44 AM
Passing JSON data to the server (?) - by El Forum - 05-01-2008, 11:35 AM
Passing JSON data to the server (?) - by El Forum - 05-02-2008, 01:58 AM
Passing JSON data to the server (?) - by El Forum - 05-02-2008, 09:14 AM



Theme © iAndrew 2016 - Forum software by © MyBB