Please watch this video and really good one for beginners.
http://www.youtube.com/watch?v=0AKw16S2jfY&feature=fvsr
Working as a Senior IBM WebSphere Portal Consultant and having good experience in design, development, Administration, and Architecting the Enterprise portal Application and Web Content management in IBM WebSphere Portal platform for many years. SME on WebSphere Portal and IBM WCM Technologies.
Search This Blog
Thursday, August 12, 2010
Wednesday, August 11, 2010
AJAX Skeleton Examples
You can use the following AJAX for basic purpose
function getContentList(url,divId) {
var xmlHttpRequest;
if (window.XMLHttpRequest) {
xmlHttpRequest = new XMLHttpRequest();
} else if(window.ActiveXObject) {
xmlHttpRequest = new ActiveXObject("Microsoft.XMLHTTP");
}
xmlHttpRequest.open("POST", url, true);
xmlHttpRequest.onreadystatechange = function() {
if (xmlHttpRequest.readyState == 4) {
if (xmlHttpRequest.status == 200) {
document.getElementById(divId).innerHTML = xmlHttpRequest.responseText;
}
}
};
xmlHttpRequest.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
xmlHttpRequest.send(null);
}
function getContentList(url,divId) {
var xmlHttpRequest;
if (window.XMLHttpRequest) {
xmlHttpRequest = new XMLHttpRequest();
} else if(window.ActiveXObject) {
xmlHttpRequest = new ActiveXObject("Microsoft.XMLHTTP");
}
xmlHttpRequest.open("POST", url, true);
xmlHttpRequest.onreadystatechange = function() {
if (xmlHttpRequest.readyState == 4) {
if (xmlHttpRequest.status == 200) {
document.getElementById(divId).innerHTML = xmlHttpRequest.responseText;
}
}
};
xmlHttpRequest.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
xmlHttpRequest.send(null);
}
Subscribe to:
Posts (Atom)