Hello friends ,
I was just trying out an AJAX based program, in which i simulate progress bar...by using a method similar to polling. It works fine, in Firefox or Google Chrome browser, but IE 7 gives "Stack overflow at line:0" alert message after first request is made.
Things i am using :-
jdk 1.6
Tomcat 5.5
IE 7
Firefox 3.0.4
Windows Vista
Eclipse 3.1
and this is what i briefly do:-
1) i make the first request to server through ajax by clicking a button.
2) on Server when request is received ... server increments a counter and sends back that value to client
3) before sending back the counter i make the
thread to sleep for few seconds in my servlet....so that i can simulate or get the feel of delay as we see in progress bar
4) i get the counter value in response xml
5) according to the counter i calculate a value and paint a div present in the page with its width set to the calulated value
6) then again the javascript sends another request
7) the cycle continues....until the entire Div gets painted
The
servlet code :-
--------------------------------------------------------
--------------------------------------------------------
and the servlet mapping in web.xml is :-
--------------------------------------------------------
--------------------------------------------------------
and the .... html file is :-
--------------------------------------------------------
--------------------------------------------------------
PLEASE HELP ME! ... what is wrong in the code...as it is not working in IE 7 ? Million thanks in advance