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