(try
MatitaAuthentication.add_user uid userpw;
(* env#set_output_header_field "Location" "/index.html" *)
- cgi#outchannel#output_string
+ cgi#out_channel#output_string
("<html><head><meta http-equiv=\"refresh\" content=\"2;url=/login.html\">"
^ "</head><body>Redirecting to login page...</body></html>")
with
env#set_output_header_field
"Set-Cookie" ("session=" ^ (Uuidm.to_string sid));
(* env#set_output_header_field "Location" "/index.html" *)
- cgi#outchannel#output_string
+ cgi#out_channel#output_string
("<html><head><meta http-equiv=\"refresh\" content=\"2;url=/index.html\">"
^ "</head><body>Redirecting to Matita page...</body></html>")
end
// internet explorer (v.9) doesn't work with innerHTML
// but google chrome's innerText is, in a sense, "write only"
// what should we do?
- logarea.innerText = txt + "\n" + logarea.innerText;
+ // logarea.innerText = txt + "\n" + logarea.innerText;
+ logarea.innerHTML = txt + "\n" + logarea.innerHTML;
}
function listhd(l)
if (is_defined(xml)) {
lockedbackup = ""
locked.innerHTML = lockedbackup;
- debug(xml.getElementsByTagName("file")[0].childNodes[0].nodeValue);
- unlocked.innerHTML = xml.getElementsByTagName("file")[0].childNodes[0].nodeValue;
+ // code originally used in google chrome (problems with mozilla)
+ // debug(xml.getElementsByTagName("file")[0].childNodes[0].nodeValue);
+ // unlocked.innerHTML = xml.getElementsByTagName("file")[0].childNodes[0].nodeValue;
+ debug(xml.childNodes[0].textContent);
+ unlocked.innerHTML = xml.childNodes[0].textContent;
} else {
debug("file open failed");