NL_Fred
08-21-2004, 12:36 PM
Hi,
I am an absolute javascript nerd, but I am looking for a script that is able to scroll up needed lines if there is new data to show.
Let me explain a little bit more:
What I want is, selecting data from a database using php/mysql every x seconds and if there are new records in the db since the last time I selected the datatabase, read the new record(s), sroll up the field in which previous records where shown and then display the new line(s).
I alreay do this using several iframes. The polling of the database is done in a hidden iframe and if there is new data to display, another iframe that is displaying the text is refreshed completely and scrolls down onload to the bottom position. This works fine until the complete text gets larger and gets worse when images are displayed.
Maybe I can solve this problem using javascript. As said I am a javascript nerd(can read and understand). I know how to do the html/php/mysql thing.
I hope there are some usefull tips or solutions.
I am an absolute javascript nerd, but I am looking for a script that is able to scroll up needed lines if there is new data to show.
Let me explain a little bit more:
What I want is, selecting data from a database using php/mysql every x seconds and if there are new records in the db since the last time I selected the datatabase, read the new record(s), sroll up the field in which previous records where shown and then display the new line(s).
I alreay do this using several iframes. The polling of the database is done in a hidden iframe and if there is new data to display, another iframe that is displaying the text is refreshed completely and scrolls down onload to the bottom position. This works fine until the complete text gets larger and gets worse when images are displayed.
Maybe I can solve this problem using javascript. As said I am a javascript nerd(can read and understand). I know how to do the html/php/mysql thing.
I hope there are some usefull tips or solutions.