This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills and have John Sonmez on-line!
See this thread for details.
The moose likes JSP and the fly likes Modify DOM with AJAX for all sessions? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Modify DOM with AJAX for all sessions?" Watch "Modify DOM with AJAX for all sessions?" New topic
Author

Modify DOM with AJAX for all sessions?

Stamin Adrian
Ranch Hand

Joined: Dec 21, 2012
Posts: 34

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

Joined: Jan 10, 2002
Posts: 61761
    
  67

Write the data to the database; have the pages occasionally poll looking for updated data.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Modify DOM with AJAX for all sessions?