web/data/cubicweb.ajax.js
changeset 10380 bfd93cbd34a4
parent 10279 d7479a5ac553
child 10411 4ee15441f2eb
equal deleted inserted replaced
10379:a1cc6788e9de 10380:bfd93cbd34a4
   361     }
   361     }
   362     return d;
   362     return d;
   363 }
   363 }
   364 
   364 
   365 /**
   365 /**
   366  * .. function:: loadRemote(url, form, reqtype='GET', sync=false)
   366  * .. function:: loadRemote(url, form, reqtype='POST', sync=false)
   367  *
   367  *
   368  * Asynchronously (unless `sync` argument is set to true) load a URL or path
   368  * Asynchronously (unless `sync` argument is set to true) load a URL or path
   369  * and return a deferred whose callbacks args are decoded according to the
   369  * and return a deferred whose callbacks args are decoded according to the
   370  * Content-Type response header. `form` should be additional form params
   370  * Content-Type response header. `form` should be additional form params
   371  * dictionary, `reqtype` the HTTP request type (get 'GET' or 'POST').
   371  * dictionary, `reqtype` the HTTP request type (get 'GET' or 'POST').