web/data/cubicweb.ajax.js
branchstable
changeset 9700 da7d341cca76
parent 9536 1e39c5e91b68
child 9770 112c884b2d8d
equal deleted inserted replaced
9699:990676d3f39f 9700:da7d341cca76
   375 }
   375 }
   376 
   376 
   377 /**
   377 /**
   378  * .. function:: loadRemote(url, form, reqtype='GET', sync=false)
   378  * .. function:: loadRemote(url, form, reqtype='GET', sync=false)
   379  *
   379  *
   380  * Asynchronously (unless `sync` argument is set to true) load an url or path
   380  * Asynchronously (unless `sync` argument is set to true) load a URL or path
   381  * and return a deferred whose callbacks args are decoded according to the
   381  * and return a deferred whose callbacks args are decoded according to the
   382  * Content-Type response header. `form` should be additional form params
   382  * Content-Type response header. `form` should be additional form params
   383  * dictionary, `reqtype` the HTTP request type (get 'GET' or 'POST').
   383  * dictionary, `reqtype` the HTTP request type (get 'GET' or 'POST').
   384  */
   384  */
   385 function loadRemote(url, form, reqtype, sync) {
   385 function loadRemote(url, form, reqtype, sync) {