I’m implementing a web server. I have a chat application on it. When I publish a new message, an HTTP request is generated, it calls the right method in the server (Java), and get a response from the server, includes in its content the new HTML code of the chat page.
I don’t want to refresh the whole page, so I want to call a JavaScript function that will inject the new message to the right div.
How can I do that?
Thanks,
Tomer
I think it’s better/simpler to use something like jQuery’s ajax load.