Subversion Repositories munaweb

Rev

Rev 143 | Rev 156 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 143 Rev 147
Line 791... Line 791...
791
        file = elmnt.getAttribute("w3-include-html");
791
        file = elmnt.getAttribute("w3-include-html");
792
        if (file) {
792
        if (file) {
793
            /* Make an HTTP request using the attribute value as the file name: */
793
            /* Make an HTTP request using the attribute value as the file name: */
794
            xhttp = new XMLHttpRequest();
794
            xhttp = new XMLHttpRequest();
795
            xhttp.onreadystatechange = function() {
795
            xhttp.onreadystatechange = function() {
796
                if (this.readyState == 4) {
796
                if (this.readyState == 4 && (this.status == 200 || this.status == 400)) {
797
                    if (this.status == 200) {
797
                    if (this.status == 200) {
798
                        elmnt.innerHTML = this.responseText;
798
                        elmnt.innerHTML = this.responseText;
799
                    }
799
                    }
800
                    if (this.status == 404) {
800
                    if (this.status == 404) {
801
                        elmnt.innerHTML = "<p>Page not found.</p>";
801
                        elmnt.innerHTML = "<p>Page not found.</p>";