• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Modify DOM with AJAX for all sessions?

 
Stamin Adrian
Ranch Hand
Posts: 34
Chrome Netbeans IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Let's say some user comments on a page. With ajax I update the HTML to include the users comment. How can I update all of the users HTML currently watching the comment page? How is this done? I cound't really find anything useful.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65120
91
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Write the data to the database; have the pages occasionally poll looking for updated data.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic