web/data/cubicweb.ajax.js
branchstable
changeset 8332 e7c008ebef74
parent 8191 eceaf9e21966
child 8349 fdb796435d7b
equal deleted inserted replaced
8331:fada118921d6 8332:e7c008ebef74
   369 }
   369 }
   370 
   370 
   371 /**
   371 /**
   372  * .. function:: loadRemote(url, form, reqtype='GET', sync=false)
   372  * .. function:: loadRemote(url, form, reqtype='GET', sync=false)
   373  *
   373  *
   374  * Asynchronously (unless `async` argument is set to false) load an url or path
   374  * Asynchronously (unless `sync` argument is set to true) load an url or path
   375  * and return a deferred whose callbacks args are decoded according to the
   375  * and return a deferred whose callbacks args are decoded according to the
   376  * Content-Type response header. `form` should be additional form params
   376  * Content-Type response header. `form` should be additional form params
   377  * dictionary, `reqtype` the HTTP request type (get 'GET' or 'POST').
   377  * dictionary, `reqtype` the HTTP request type (get 'GET' or 'POST').
   378  */
   378  */
   379 function loadRemote(url, form, reqtype, sync) {
   379 function loadRemote(url, form, reqtype, sync) {