As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
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);
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);
Alfresco.util.Ajax.request({ url: webscriptUrl, method: POST, requestContentType: "application/json", … // other params
var param1 = json.get("param1");