Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Mar 2010
    Posts
    14
    Thanks
    1
    Thanked 0 Times in 0 Posts

    sort of auto-update?

    hi! i have a simple chatbox, where a registered user can submit a message here http://fael097.site11.com and i need some sort of script, where the chatbox refreshes for everyone when a new message is submitted.

    scripts that auto refreshes the page each X seconds are not right for me, i just want to update when theres a new message. thank you

  • #2
    Senior Coder angst's Avatar
    Join Date
    Apr 2004
    Location
    Toronto, Ontario
    Posts
    2,114
    Thanks
    15
    Thanked 122 Times in 122 Posts
    well for this kind of chat client, you will have to use some sort of refresh, how else will the web page know if there has been an update?

    meta-refresh will work, or you would get the chat feed via ajax and use interval() to update it every few seconds.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •