How To Submit Javascript Arrays Through J Query Ajax Calls T.. - Presentation Transcript
How to Submit Javascript Arrays through jQuery AJAX calls « Thinking... http://trippinbilly25.wordpress.com/2008/07/02/how-to-submit-javascript...
How to Submit Javascript Arrays through jQuery AJAX calls
Posted July 2, 2008
Filed under: How To, Javascript/AJAX, Programming | Tags: javascript, web programming, jQuery,
Javascript/AJAX, Programming |
When making ajax calls in jQuery there are 4 simple functions one can use to access data on the server:
$.ajax
$.get
$.post
$(’#blah’).load
Now there is ample documentation about how to use these functions, but I have not seen any that deals with
submiting data to the server from an array of values, which would make somehting like sending a list or
marked checkboxes a lot easier.
To submit an array of values to the server with the $.ajax function one should do the following:
var
0 comments
Post a comment