09-29-2011 04:17 PM
var sUrl = Alfresco.constants.PROXY_URI + "folder-search";
var postData = "searchTxt=" + document.getElementById("jtf_text").value;
var request = YAHOO.util.Connect.asyncRequest('POST', sUrl, callback, postData);
10-28-2011 09:23 AM
10-28-2011 09:40 AM
function getXhr(){
var xhr = null;
if(window.XMLHttpRequest)
xhr = new XMLHttpRequest();
else if(window.ActiveXObject){
try {
xhr = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
xhr = new ActiveXObject("Microsoft.XMLHTTP");
}
} else {
alert("${message('templates.apmSearch.get.error.XMLHTTP')}");
xhr = false;
}
return xhr;
}
var url = Alfresco.constants.PROXY_URI + "folder-search";
var xhr = getXhr();
xhr.open("POST",url,false);
var data = new FormData();
data.append("searchTxt", document.getElementById("jtf_text").value);
xhr.send(data);
11-15-2011 04:36 AM
Alfresco.util.Ajax.request({
url: webscriptUrl,
method: POST,
requestContentType: "application/json",
… // other params
var param1 = json.get("param1");
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.