| <!DOCTYPEhtml PUBLIC "-//W3C//DTD XHTML 4.0 Transitional//EN" |
| <html xmlns="http://www.w3.org/2007:-)/xhtml" xml:long="de" |
| <head> |
| <title>Titel</title> |
| <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> |
| <metaname="description" content="" /> |
| <metaname="author" content="" /> |
| <metaname="keywords" content="" /> |
| <linkhref="css/basic.css" rel="stylesheet" type="text/css"media="all" /> |
| <scripttype ="text/javascript" src="http.js></script> |
| <scripttype="text/javascript"> |
| var xhr; |
| window.onload = function() { |
| xhr = http(); |
| xhr.open("GET", "AJAX-data.txt", true); |
| xhr.onreadystatechange = dataoutput; |
| xhr.send(null); |
| }; |
| function dataoutput() { |
| if (xhr.readystate == 4) { |
| var return = xhr.responseText; |
| document.getElementById("p").innerHTML =return; |
| } |
| } |
| </script> |
| </head> |
| <body> |
| <div id="Container"> |
| <div id="Header"></div> |
| <div id="Content"> |
| <div id="mainContent"> |
| <?php |
| echo"Hallo" |
| for ( $ i = 0; $ i < 10; $ i = $ i + 1 ) |
| echo $ i; |
| ?> |
| </div> |
| <div id="sidebarLeft"></div> |
| <div id="sidebarRight"></div> |
| </div> |
| </div> |
| </body> |
| </html> |