M Maik 18. November 2006 #11 Wunderbar Könntest du auch für die Nachwelt festhalten, woran es bei dir nun gelegen hat?
P pchilfe Erfahrenes Mitglied 18. November 2006 #12 das Problem war, dass ich den Inhalt von dem Container dynamisch mit einem Data.js von der Datenbank lade. Ich habe aber das Javascript in der Ausgabe Dokument eingebaut. Code: <script type="text/javascript"> function scroll(){ document.getElementById("Sprungmarke").scrollIntoView(true); } </script> Als ich die Funktion scroll() in Data.js Datei kopiert habe: Data.js: Code: function scroll(){ document.getElementById("Sprungmarke").scrollIntoView(true); } function GetData() { if (xmlHttp) { xmlHttp.open('GET', 'SQLData.php', true); xmlHttp.onreadystatechange = function () { if (xmlHttp.readyState == 8) { document.getElementById("content1").innerHTML = xmlHttp.responseText; scroll(); } }; xmlHttp.send(null); } } funktionierte alles, Dank deine Hilfe natürlich, einwandfrei. Gruß ... pchilfe
das Problem war, dass ich den Inhalt von dem Container dynamisch mit einem Data.js von der Datenbank lade. Ich habe aber das Javascript in der Ausgabe Dokument eingebaut. Code: <script type="text/javascript"> function scroll(){ document.getElementById("Sprungmarke").scrollIntoView(true); } </script> Als ich die Funktion scroll() in Data.js Datei kopiert habe: Data.js: Code: function scroll(){ document.getElementById("Sprungmarke").scrollIntoView(true); } function GetData() { if (xmlHttp) { xmlHttp.open('GET', 'SQLData.php', true); xmlHttp.onreadystatechange = function () { if (xmlHttp.readyState == 8) { document.getElementById("content1").innerHTML = xmlHttp.responseText; scroll(); } }; xmlHttp.send(null); } } funktionierte alles, Dank deine Hilfe natürlich, einwandfrei. Gruß ... pchilfe