Hi all i am using doku wiki and i need to call methods through my javascript application.i can execute the login function with success and i can execute the wiki.putPage function with success. But there is a problem
i make a jquery ajax call with the dokuwiki.login and i receive the success
then i make a second jquery ajax call with the wiki.putpage. now if i have set the rights from the control panel to
everyone to be able to create then the new wiki article is created. But if i have set the rights to require authentication before posting then the second ajax call fails saying that i am not authorized.
it seems that the first ajax call that does the login does not store the cookie or session or whatever is required for the second ajax call
to know that the user is logged in. am i writing something wrong?
$.ajax({
url: "
http://localhost:8800/lib/exe/xmlrpc.php",
data: loginXml,
contentType: "text/xml",
type: "post",
success: function (d,e,r,m) {
if (new XMLSerializer().serializeToString(d.documentElement).indexOf("boolean>1</boolean") > -1) {
$.ajax({
url: "
http://localhost:8800/lib/exe/xmlrpc.php",
data: putpageXml,
contentType: "text/xml",
type: "post",
success: function (d) {
so i do one ajax call and when that succeeds i do a second one. how do i store the cookie (if cookies is the problem)?
or can i send the 2 methods in one ajax call?
i tried making the xml to have the 2 methodcalls combined in the xmlrpc but i always get wrong format error
thank you