web/data/cubicweb.ajax.js
changeset 9770 112c884b2d8d
parent 9661 c170ec8a4525
parent 9700 da7d341cca76
child 9785 8125ba3f4f6d
equal deleted inserted replaced
9765:5607ef9ab9f5 9770:112c884b2d8d
   371 }
   371 }
   372 
   372 
   373 /**
   373 /**
   374  * .. function:: loadRemote(url, form, reqtype='GET', sync=false)
   374  * .. function:: loadRemote(url, form, reqtype='GET', sync=false)
   375  *
   375  *
   376  * Asynchronously (unless `sync` argument is set to true) load an url or path
   376  * Asynchronously (unless `sync` argument is set to true) load a URL or path
   377  * and return a deferred whose callbacks args are decoded according to the
   377  * and return a deferred whose callbacks args are decoded according to the
   378  * Content-Type response header. `form` should be additional form params
   378  * Content-Type response header. `form` should be additional form params
   379  * dictionary, `reqtype` the HTTP request type (get 'GET' or 'POST').
   379  * dictionary, `reqtype` the HTTP request type (get 'GET' or 'POST').
   380  */
   380  */
   381 function loadRemote(url, form, reqtype, sync) {
   381 function loadRemote(url, form, reqtype, sync) {