I have a login page which takes the user name and password and directs it to a controller. If the login information is correct, the controller sends some data to be displayed on the home page.
Now, I want to provide a link on the home page that enables the user to refresh the page on a click. This should resubmit the username and password and the page is reloaded, i.e. F5 functionality. My current code :
Please <a href='#' onclick='location.reload(true);'> refresh the page </a>
is not exhibiting the form resubmission from the login page. How may I achieve this? Any ideas regarding this would be very helpful.
window.location.href = window.location.href;POSTform? What about the form inputs? Are they being populated after the initial refresh? Why do you need to submit the data again? Why can't you do whatever it is you need to do with the values the first time round?