wanting to have a textfield refresh every 30seconds with whats in a mysql database.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JasonC
    New Member
    • Nov 2006
    • 3

    wanting to have a textfield refresh every 30seconds with whats in a mysql database.

    I have started to create a chat page between an admin and a user.

    the bit i am stuck with is getting the textarea to update with whats in the database if it has been updated.

    at present i am using meta-refresh but this is not practicle as the user or admin could be typing when the refresh happens and the text they started to type would go!

    how do i get the page to check for updates?
  • zorgi
    Recognized Expert Contributor
    • Mar 2008
    • 431

    #2
    Hm. Interesting. I never attempted to code something like that but I guess If I had to do it I would try ajax instead of meta-refresh.

    Comment

    • JasonC
      New Member
      • Nov 2006
      • 3

      #3
      i have been told this too, but have no idea where to start.

      any ideas ?

      Comment

      • zorgi
        Recognized Expert Contributor
        • Mar 2008
        • 431

        #4
        You can find loads of tutorials on AJAX

        Comment

        Working...