Posted in: AJAX,Collections API,Core Java,J2EE Design Patterns,JAVA/J2EE,JBoss Server Deployment
<script type="text/javascript">
function ajaxDataGet(){
var ajaxObject; //the variable that will store the object
try {
// Firefox, Safari, Chrome, Opera, Internet Explorer 7+
ajaxObject = new XMLHttpRequest();
} catch (e) {
// Internet Explorer 5 & 6
try {
ajaxObject = new ActiveXObject("Microsoft.XMLHTTP");
} catch (e){
//if AJAX is not supported at all
alert("Your browser does not support AJAX!! ");
return false;
}
}
}
</script>