The scenario:
- I dynamically create an iframe and a form inside it via JavaScript.
- The form is submitted via JavaScript and sends a POST request to a server.
- The request is received, but the browser stays on loading status (the progress bar at the bottom of the window keeps progressing and doesn't stop, only happens after form submission).
If I use such an iframe form to POST to somewhere else, this doesn't happen. When trying a regular form not in an iframe, this doesn't happen as well.
So, any idea why this odd phenomenon happens? Or how to stop the browser from the loading status? I tried calling window.stop() from the response to the POST, but to no avail. Setting the frame.src property seems to work, but it comes at a price of an annoying click sound in IE.
Thanks in advance for the help!