10:59:09,897 INFO [WebScriptRuntime::executeScript] Caught exception & redirecting to status template: Script url /ui/compas/bean/compas does not support the method OPTIONS
<html>
<head>
<script type='text/JavaScript'>
function getXhr(){
var xhr = null;
if(window.XMLHttpRequest){ // Firefox et autres
xhr = new XMLHttpRequest();
}
else if(window.ActiveXObject){ // Internet Explorer
try {
xhr = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
xhr = new ActiveXObject("Microsoft.XMLHTTP");
}
}
else { // XMLHttpRequest non supporté par le navigateur
alert("Votre navigateur ne supporte pas les objets XMLHTTPRequest…");
xhr = false;
}
var xdoc;
if( window.ActiveXObject && /Win/.test(navigator.userAgent) )
{
xdoc = new ActiveXObject("Microsoft.XMLDOM");
xdoc.async = false;
}
else if( document.implementation && document.implementation.createDocument )
{
xdoc = document.implementation.createDocument("", "", null);
}
xdoc.load("data.xml");
var dataToSend=xdoc;
xhr.open("POST","http://localhost:8080/alfresco/service/ui/compas/bean/compas", true);
xhr.setRequestHeader("Content-Type", "text/xml");
xhr.send(dataToSend);
xhr.onreadystatechange =function()
{
if (xhr.readyState == 4) {
alert("Post successful");
}
}
}
</script>
</head>
<body>
<form method="post">
identifiant : <input name="idcomm"><br />
date : <input name="date"><br />
description : <input name="desc"><br />
version : <input name="version"><br />
flux : <input name="flux"><br />
système emetteur : <input name="emetteur"><br />
système destinataire : <input name="dest"><br />
<input type="submit" name="submit" value="Go" onclick='getXhr()'>
</form>
</body>
</html>
<form action="${url.full}" method="POST">
identifiant : <input name="idcomm"><br />
date : <input name="date"><br />
description : <input name="desc"><br />
version : <input name="version"><br />
flux : <input name="flux"><br />
système emetteur : <input name="emetteur"><br />
système destinataire : <input name="dest"><br />
<input type="submit" value="Go">
</form>
dataToSend = xdoc.load("data.xml");
…
xhr.send(dataToSend);
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.