I am developing with app engine SDK. I have a feeling this is much too basic a question so apologies ahead of time...
A simple submit button doesnt work instead of just showing an alert box as expected it continues on afterwards and redirects me to the latest http-request, and I think this is because I dont understand how to tell the browser to recognize the proper URLs.
Why does my browser say I am at the most recent http-request http://localhost:8080/putProjectInDB
rather than the somepage.html
that was actually served to the browser that I am currently looking at?
How can I get the browser to recognize and show in its url spot the normal expected http://somepage.html
?
Just in case, here are details of the specific problem which you might be able to ignore for answering the question:
This hasnt been mattered for me until I just wanted to put into my .html a simple button that changes some stuff of the page without needing the server. The below code after displaying the alert box redirects me to the last server request http://localhost:8080/putProjectInDB
instead of just staying in the same html page.
in header:
function MyFormCommands() {
alert('Some Text');
}
in body:
<form onSubmit="MyFormCommands()" ><input type=submit ></form >