Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.5.8

Bug #7201 Loading Div still shows in IE after grab call
Submitted: 2006-03-24 22:26 UTC
From: chris at designer-web dot com Assigned: lyaish
Status: Closed Package: HTML_AJAX (version 0.3.4)
PHP Version: 5.1.2 OS: Windows XP
Roadmaps: (Not assigned)    
Subscription  


 [2006-03-24 22:26 UTC] chris at designer-web dot com (Chris Whitten)
Description: ------------ In IE, if you use the grab method, it will cause the loading div to not disappear after it has made the call. Even if it was successful both times, it will still not dissapear. In the example I have provided here, it alerts out what is put into the text box, if you hit the submit button again, the loading div will not dissapear. This was tested with IE 6 on XP SP2 with all the latest security patches. Test script: --------------- <?php if(isset($_REQUEST['testval'])) exit($_REQUEST['testval']); ?> <html><head> <script type="text/javascript" src="HTML_AJAX-HelloWorld/server.php?client=all"></script> <script language="javascript"> function formvalidation(thisform) { var title = "test.php?testval=" + document.form1.addressTitle.value; alert(HTML_AJAX.grab(title)); return false; } </script> <body>Make sure to push the button twice...<br> <form action="test.php" name="form1" method="POST" onsubmit="return formvalidation(this)"> <input type="text" name="addressTitle"><input type="submit" name="submit"> </form> </body> </head></html> Expected result: ---------------- It should show a very simple edit box with a submit button. If you type something into the edit box and submit it, it shows in the alert box just fine. If you hit the submit again, you would expect for the same action to happen again, where it would popup a message box and the red loading div tag would dissapear. Actual result: -------------- In the actual result, the second time the user hits the submit button, the alert box shows, but the red "loading..." div tag in the upper right never dissapears.

Comments

 [2006-03-24 22:29 UTC] jeichorn at php dot net (Joshua Eichorn)
This problem is actually with sync requests not with grab. HTML_AJAX.grab(title,function(result) { alert(result); }); Won't show this problem. Code that doesn't work right in sync mode is js/loading.js
 [2006-05-02 16:45 UTC] lyaish at php dot net (Laurent Yaish)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better. HTML_AJAX.Open was being called twice due to onreadystatechange not being cleared in IE.