Worqy Posted June 29, 2010 Share Posted June 29, 2010 Hi. I have made a chat program. Now I need a AJAX/JS(??) system to update the data from a database to a textarea.. A friend of mine gave me a tips that I should use HttpXMLRequest to this. What shall I use, and how do I use it? // Worqy Link to comment https://forums.phpfreaks.com/topic/206211-chat-updator/ Share on other sites More sharing options...
Stooney Posted June 29, 2010 Share Posted June 29, 2010 I suggest checking out jQuery and using it's built in AJAX functionality. There are plenty of tutorials on this, just search Google. Link to comment https://forums.phpfreaks.com/topic/206211-chat-updator/#findComment-1078907 Share on other sites More sharing options...
XeNoMoRpH1030 Posted June 30, 2010 Share Posted June 30, 2010 Any Javascript library will help you out. I personally use Mootools and it's pretty easy. The way I accomplished something similar was setting a timer and retrieving the results every 5 seconds or so. I also only received the last 20 messages. I'm sure there is a better way though. Link to comment https://forums.phpfreaks.com/topic/206211-chat-updator/#findComment-1079176 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.