04-15-2009 10:57 AM
05-21-2010 10:19 AM
05-21-2010 10:27 AM
05-21-2010 10:44 AM
05-21-2010 11:06 AM
05-21-2010 11:22 AM
Starting with version 1.1.0 a new portlet preference was added to allow for the AWPr javascript variable name to be configured per AWPr portlet instance. This allows more than one AWPr instance to exist on one portal page. The Web script developer will have to know the name of the javascript variable in and write the Web script AJAX calls accordingly.
The portlet preference is named jsVariable and works as follows:
jsVariable value: ABC
Javascript variable in browser: var AWPr_ABC.encodeUrl()
jsVariable value: Not set
Javascript variable in browser: var AWPr.encodeUrl()
05-21-2010 11:38 AM
http_request.open("POST", AWPr_rstnews.encodeUrl("/alfresco/s/rst/getArticle"),true);
05-23-2010 10:10 PM
05-25-2010 02:53 AM
05-26-2010 09:16 AM
function goToPage(param){
var parameters = "node="+ encodeURI(param)+
"&alf_ticket=${ticket}";
http_request = initialize();
http_request.open("POST", "${url}/alfresco/s/rst/getArticle",true);
http_request.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
http_request.setRequestHeader("Content-length", parameters.length);
http_request.setRequestHeader("Connection", "close");
http_request.onreadystatechange=function() {
if (http_request.readyState==4) {
resultMail = http_request.responseText;
document.getElementById('test').innerHTML = resultMail;
}
}
http_request.send(parameters);
}
function goToPage(param){
http_request = initialize();
http_request.open("POST", "${url}/alfresco/s/rst/getArticle?node="+ encodeURI(param)+"&alf_ticket=${ticket}",true);
http_request.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
http_request.setRequestHeader("Connection", "close");
http_request.onreadystatechange=function() {
if (http_request.readyState==4) {
resultMail = http_request.responseText;
document.getElementById('test').innerHTML = resultMail;
}
}
}
05-26-2010 10:04 AM
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.