File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 60046
    
  65

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?
 
Similar Threads
Ajax and post messages
Welcome Ryan Asleson and Nathaniel Schutta
Ajax, Java, JSP
Struts 1.1 forward mapping problem
How to use refresh in servlets?