Hi, I'm making a sort of chatbox kinda thing, and I've got it working so you enter your message, it posts it and you can see the last 5 messages. The thing is, to see new messages the page must be refreshed which is annoying, so I want it to automatically update the page with new posts/chats. Using META refresh works, but it's very noticeable on the browser (the loading icon starts moving).
I want to do it with ajax. Problem is, I've never used ajax or javascript (much) so I need help. I've looked on Google, can't find what I want. All it needs to be is something that refreshes "get.php" every second, OR something similar that updates the page with a new post once its posted.
If anybody could give me the code, either written by themselves or found off of Google I'd be so grateful!
Thanks.





Reply With Quote



