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

7th Feb 2018, 8:33 AM
Kumar Kshitij
Kumar Kshitij - avatar
2 Respuestas
+ 2
you could use the meta refresh tag.
7th Feb 2018, 8:41 AM
Tim Millar
Tim Millar - avatar
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...
7th Feb 2018, 8:51 AM
Kumar Kshitij
Kumar Kshitij - avatar