0
How to automatically update a webpage to show new entries in mysql database table?
I am actually building a chatbox and for this, I used js to continuously load the chatlog after fixed interval of time. I am able to see the new entries but the problem is that I am not able to scroll up the page to see older chats as the chatlog keeps on reloading after the given time interval. Link to the project: https://github.com/PsYcO-kk/ChatBox
2 ответов
+ 2
you could use the meta refresh tag.
0
Tried that too... It made the webpage flicker on every refresh... couldn't even grab and move the scrollbar up then...
Actually I am looking for something dynamic... Just like AJAX if I can query from the database table everytime a new entry is made...