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 :- --------------------------------------------------------
... so i played with the settings or configuration of IE... i did not find any option like "Disable third party plugins" ... But i did find, options like:- "Disable script debugging(Internet Explorer)" [...this was already ticked] "Disable script debugging(Other)" [... this option was also ticked] "Display notification for every script error [... and even this option was ticked]
so i unticked the 1st 2 options. In the meantime while i was searching the internet for some possible, i was also modifying the Ajax code, and considerable changes had been made by then.
TO MY SURPRISE.... the code worked !!! in all the three browsers :- IE 7 Firefox 3.0.4 Google Chrome
.... i reverted back the settings of the browser to default and tried undoing the changes i made to the code as far as possible to reproduce the problem .....but to my surprise the error is not reproducible and still it is working in all the three browsers.
i really don't know what was the ACTUAL problem...and how it got solved.
Shall i post the latest AJAX code ... can someone please guide, what could have possibly went wrong ?
Million thanks!
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: Problem in simulating progress bar using Ajax