This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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 Android Security Essentials Live Lessons this week in the Android 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
 
Don't get me started about those stupid light bulbs.
 
subject: Recursive call to a JavaScript method with AJAX call
 
Similar Threads
pass <bean:write> to a function
Could I make a automatic call for ajax method
AJAX Call timout: code: 12002
AJAX call works in ie6 but not in firefox
AJAX requests on page reload