S
Samik R.
Hello,
I am using the innerHTML property of a div placeholder to update the contents, and the HTML is provided from a perl script on the server side. The perl script gets called through AJAX when I press a button in the first page. The returned HTML in the div has another button, which, when pressed, should call the same perl script again. Think of the program as some sort of wizard.
The problem is, this works perfectly as expected in FF (2.0). In IE (7.0) however, the first time I press the button, the things are fine and the second button comes in. Pressing this button does not do anything, although the perl routine does get called and the return HTML gets generated. Somehow the HTML never reaches the browser or something similar. The JS stateChangeHandler method for the XMLHTTP object, which should handle things when readyState changes to 4 and status changes to 200 etc. never gets fired.
I created a highly scaled down version of my page which demonstrates the problem. The page works in FF but not in IE7.
URL: http://samik.freeshell.org/test/ajaxtest.html
The backend perl is available at: http://samik.freeshell.org/test/ajaxTest.txt
Regards.
-Samik
I am using the innerHTML property of a div placeholder to update the contents, and the HTML is provided from a perl script on the server side. The perl script gets called through AJAX when I press a button in the first page. The returned HTML in the div has another button, which, when pressed, should call the same perl script again. Think of the program as some sort of wizard.
The problem is, this works perfectly as expected in FF (2.0). In IE (7.0) however, the first time I press the button, the things are fine and the second button comes in. Pressing this button does not do anything, although the perl routine does get called and the return HTML gets generated. Somehow the HTML never reaches the browser or something similar. The JS stateChangeHandler method for the XMLHTTP object, which should handle things when readyState changes to 4 and status changes to 200 etc. never gets fired.
I created a highly scaled down version of my page which demonstrates the problem. The page works in FF but not in IE7.
URL: http://samik.freeshell.org/test/ajaxtest.html
The backend perl is available at: http://samik.freeshell.org/test/ajaxTest.txt
Regards.
-Samik