web/data/cubicweb.ajax.js
changeset 10411 4ee15441f2eb
parent 10301 729f36a1bcfa
parent 10380 bfd93cbd34a4
child 10412 3540131a8405
equal deleted inserted replaced
10410:eb681a030699 10411:4ee15441f2eb
   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').