Ich peil das ganze Ajax Zeuch einfach net ^^
Habe jetzt mal aus dem Beispiel "Shoutbox" die JS genommen und die so nach meinem Verständniss angepasst. Die sieht jetzt wie folgt aus:
Code:
window.onload = function()
{
setInterval("asbLoadEntries()",5000);
}
function asbLoadEntries()
{
with (new Ajax()) {
url="../index.php";
doRequest();
}
}
In PHP ganz normal eingebunden. Wird auch soweit alles richtig geladen ...
PHP-Code:
echo '<link href="css/jukebox.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/ajax.js"></script>
<script type="text/javascript" src="js/jukebox.js"></script>';
Wird aber nix reloadet oder sonst irgendwas passiert.
Habe mal die ajax.js mal mit hochgeladen.
Terra