HTML and CSS Reference
In-Depth Information
The File to Create an Ajax Request Object
EXAMPLE 18.14
/* Check browser type and create ajax request object */
function createRequest(){
var ajaxRequest; // The variable that makes Ajax possible!
try{
// Opera 8.0+, Firefox, Safari
ajaxRequest = new XMLHttpRequest();
}
catch (e){
// Internet Explorer Browsers
try{
ajaxRequest = new ActiveXObject("Msxml2.XMLHTTP");
}
catch (e) {
try{
ajaxRequest = new ActiveXObject("Microsoft.XMLHTTP");
}
catch (e){
return false;
}
}
}
return ajaxRequest;
}
The CSS Style Sheet File
EXAMPLE 18.15
body{background-color:blue;color:white;font-size:120%}
.divStyle {
background-color:lightblue;
margin-left:50px;
margin-right:100px;
border-style:solid;
color:darkblue;
font-size:120%
}
Search WWH ::




Custom Search