I expect to see in the browswer "http://path/some_page.html" but instead it identifies with "http:/

Posted by indiehacker on Stack Overflow See other posts from Stack Overflow or by indiehacker
Published on 2010-04-23T08:39:57Z Indexed on 2010/04/23 8:43 UTC
Read the original article Hit count: 231

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 >

© Stack Overflow or respective owner

Related posts about google-app-engine

Related posts about httpwebrequest