if i wanted to use ajax to...

Discussion in 'General Chat' started by mybluehair, Nov 10, 2007.

  1. #1
    i have no idea what ajax is, but i heard that it can basicly refresh a page without really refreshing it. im makings a chat room using only php and mysql. everytime a user enters a message into the chat box and presses enter, it shows there message below. now if what i think is true, ajax can help me. is there a way for ajax (or maybe even something else) to refesh the page (or display new info) when another computer enters info into the chat box? or if not, can anyone help me do what im trying to accomplish here? it would be really nice if the one file for the chat room (including message form, the code that inserts that info the DB, and the bit that desplays the info) could be spit into kinda 2 different pages like myphpadmin usally is, and the part that displays info, could be refreshed every so often. can someone help me?
     
    mybluehair, Nov 10, 2007 IP
  2. dynashox

    dynashox Premium Member Staff

    Messages:
    8,662
    Likes Received:
    563
    Best Answers:
    3
    Trophy Points:
    335
    #2
    It is wise if you post this in programming board.
     
    dynashox, Nov 10, 2007 IP