Version: (using KDE KDE 3.2.0) Installed from: Mandrake RPMs Compiler: GCC 3.3.2 OS: Linux Using the document.location.reload(); javascript method does not have the same effect as pressing the reload button on the browser, calling it doesn't repost any form data but pressing reload prompts the user to repost. Mozilla does prompt the user to repost upon calling document.location.reload(); -George
is this still valid for kde 3.5.4?
Could you provide a testcase with the reload button a js function in question. This would make it much easier for us to see if this bug is still valid.
A testcase HTML file would be: <html> <body> <form method="post" action=""> <input value="test"> <input type="button" onClick="document.location.reload();" value="R2"> <input type="submit"> </form> </body> </html> Once loaded press submit to get to a page considered to be the result of submitted content. Then hit "Refresh" button on the toolbar - Konqueror pops up a warning dialog about re-submitting content. Press R2 however and the page will refresh without asking. Hope that helps.
NB: Confirms this behaviour on Kubuntu 6.10 / KDE 3.5.5.
Online test case at http://www.mutube.com/x/kde/kde79492.php
Confirmed with both KDE 3.5.9 and current trunk. There doesn't have to be a form involved - even the simple test case of <HTML> <BODY> <A HREF="javascript:window.location.reload(true)">Reload this page</A> </BODY> </HTML> doesn't reload the page from the web server when the link is clicked, the "Stop" button just flashes on and off briefly. Firefox and IE unconditionally reload the page from the web server when the link is clicked.
Using Konqueror 4.5.4 / Qt 4.7.1 / Fedora 14 you still don't get prompted for reposting submitted data when using the javascript method. (Tested with the online example.) This is the case with both KHTML and Webkit.
Updating version due to comment 7 to version 4.5.4.
Also confirmed on Konqueror 4.8.4 and KHTML