aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Recursive call to a JavaScript method with AJAX call Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Recursive call to a JavaScript method with AJAX call" Watch "Recursive call to a JavaScript method with AJAX call" New topic
Author

Recursive call to a JavaScript method with AJAX call

Prakas Subed
Greenhorn

Joined: Dec 09, 2004
Posts: 20
Following code is successful in refreshing a page every second without flicker (long live AJAX). However, it makes the browser and JBoss server freeze after a while. Any idea/suggestion on the way AJAX call is implemented?

<pre>

Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
One thing is you are hammering your website with requests. Once a second can cause a heavy load on the box with a lot of people are going to use it. Another thing is eventually the browser eats up memory since it has a bad Garbage Collection.

Eric
 
 
subject: Recursive call to a JavaScript method with AJAX call