June 2015
Intermediate to advanced
192 pages
4h 8m
English
In principle, using REST to create a document is simple: create the JavaScript object on the client, encode it as JSON, and POST it to the server. Let's see how this works in practice.
There are two pieces to this: the client piece and the server piece.
POST to the server using the client-side (in the HTML) method doUpsert:function doUpsert(which) { Var id = $('#id').val(); var value = {}; value.call = $('#call').val(); value.lat = $('#lat').val(); value.lng = $('#lng').val(); $('#debug').html(JSON.stringify(value)); var reqType ...Read now
Unlock full access