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 Android Security Essentials Live Lessons this week in the Android 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: 60785
    
  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]
 
 
subject: Modify DOM with AJAX for all sessions?
 
Similar Threads
Struts 1.1 forward mapping problem
Ajax and post messages
Ajax, Java, JSP
Welcome Ryan Asleson and Nathaniel Schutta
How to use refresh in servlets?