Comment #1 on issue 23688 by [email protected]: ERROR FORM AJAX WHEN KEYS BACK OR FORWARD http://code.google.com/p/chromium/issues/detail?id=23688
We're experiencing the same issue with Chrome 3.0.195.27. We've used an aspx page for the repro, but anything that will accept a postback will do. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <script type="text/javascript" src="/jquery-1.3.2.js"></script> </head> <body> <form method="post" action="Default.aspx" id="form1"> <div> <p>First load, Send 1, 2, 3 all work.</p> <p>Press submit, Send 1, 2, 3 still all work.</p> <p>Press 'Nav', press back. Send 1, 2, 3 no longer work.</p> <input type="submit" value="submit" /> <a href="AnythingElse.aspx">Nav</a> <a href="javascript:sendRequest1();">Send 1</a> <a href="javascript:sendRequest2();">Send 2</a> <a href="javascript:sendRequest3();">Send 3</a> <script type="text/javascript"> function sendRequest1() { var xmlHttpRequest = new XMLHttpRequest(); xmlHttpRequest.onreadystatechange = function(e) { if (xmlHttpRequest.readyState == 4) { alert(xmlHttpRequest.readyState + ' ' + xmlHttpRequest.status + ' ' + xmlHttpRequest.responseText); } else { alert(xmlHttpRequest.readyState); } }; xmlHttpRequest.open('POST', 'Default.aspx', true); xmlHttpRequest.send(''); } function sendRequest2() { $.post('Default.aspx', '', function(data) { alert(data); }, "html"); } function sendRequest3() { $.ajax({ type: 'POST', url: 'Default.aspx', data: '', success: function(data) { alert(data); }, error: function(xmlHttpRequest, textStatus, errorThrown) { alert(textStatus); } }); } </script> </div> </form> </body> </html> -- You received this message because you are listed in the owner or CC fields of this issue, or because you starred this issue. You may adjust your issue notification preferences at: http://code.google.com/hosting/settings --~--~---------~--~----~------------~-------~--~----~ Automated mail from issue updates at http://crbug.com/ Subscription options: http://groups.google.com/group/chromium-bugs -~----------~----~----~----~------~----~------~--~---
