Discussion:
Issue 137203 in chromium: form submit is not working in chrome
c***@googlecode.com
2012-07-13 11:09:15 UTC
Permalink
Status: Unconfirmed
Owner: ----
Labels: Type-Bug Pri-2 Area-Undefined OS-Windows

New issue 137203 by ***@gmail.com: form submit is not working in
chrome
http://code.google.com/p/chromium/issues/detail?id=137203

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta http-equiv="Cache-Control" content="no-store">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="-1">
<title>Insert title here</title>
</head>
<body>
<table>
<tr>
<td>
</td>
</tr>
<tr>
<td>
<form action="#" method="get" name="formMobile" id="formMobile">
<!-- <textarea name="numbers" id="numbers" rows="7" cols="70"
style="width:100%;height:100%;resize:none;"></textarea> -->
<input type="text" name="data" />
<input type="button" name="Submit22" value="Submit"
onclick="validateForm()"/>
</form>
</td>
</tr>
</table>
</body>
<script type="text/javascript">
function validateForm()
{
document.formMobile.Submit22.value = "Submitting...";
document.formMobile.Submit22.disabled = true;
document.formMobile.submit();
}
</script>
</html>

above is the simple code which is expected to work when user clicks Submit
button

In all browser it working fine except chrome

could you look in to issue.

Here the let user to enter some data and when user clicks "Submit".
form is supposed to submit.

I tried lot of solutions but none of it seems to be working.
--
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/a/chromium.org/group/chromium-bugs
c***@googlecode.com
2012-07-17 03:32:35 UTC
Permalink
Updates:
Labels: -Area-Undefined Area-WebKit WebKit-Forms

Comment #1 on issue 137203 by ***@chromium.org: form submit is not
working in chrome
http://code.google.com/p/chromium/issues/detail?id=137203

I couldn't reproduce the issue.
I opened the HTML document, clicked the "Submit" button, the page was
navigated to ...?data=" correctly.
--
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/a/chromium.org/group/chromium-bugs
c***@googlecode.com
2012-07-17 04:54:06 UTC
Permalink
Comment #2 on issue 137203 by ***@gmail.com: form submit is not
working in chrome
http://code.google.com/p/chromium/issues/detail?id=137203

Hello,

Please follow the below steps to reproduce the issue.
1. copy the given code in a file and save the file with .html extension.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01
Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta http-equiv="Cache-Control" content="no-store">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Expires" content="-1">
<title>Insert title here</title>
</head>
<body>
<table>
<tr>
<td>
</td>
</tr>
<tr>
<td>
<form action="#" method="get" name="formMobile" id="formMobile">
<!-- <textarea name="numbers" id="numbers" rows="7" cols="70"
style="width:100%;height:100%;resize:none;"></textarea> -->
<input type="text" name="data" />
<input type="button" name="Submit22" value="Submit"
onclick="validateForm()"/>
</form>
</td>
</tr>
</table>
</body>
<script type="text/javascript">
function validateForm()
{
document.formMobile.Submit22.value = "Submitting...";
document.formMobile.Submit22.disabled = true;
document.formMobile.submit();
}
</script>
</html>
2. don't enter anything in text box and press submit
3. repeat step 2.

So according to my analysis when there same data is being submitted chrome
doesn't return true to tosubmit() function.

you can reproduce the issue by enter same data twice or more than twice
e.g enter a more than once in text box or any data more than once

Same code is working fine in all other browsers.
--
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/a/chromium.org/group/chromium-bugs
c***@googlecode.com
2012-07-23 07:06:03 UTC
Permalink
Updates:
Status: Untriaged

Comment #3 on issue 137203 by ***@chromium.org: form submit is not
working in chrome
http://code.google.com/p/chromium/issues/detail?id=137203

Confirmed.
--
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/a/chromium.org/group/chromium-bugs
c***@googlecode.com
2012-08-09 10:49:03 UTC
Permalink
Comment #4 on issue 137203 by ***@gmail.com: form submit is not
working in chrome
http://code.google.com/p/chromium/issues/detail?id=137203

Waiting for your reply guys as it is very urgent
--
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/a/chromium.org/group/chromium-bugs
c***@googlecode.com
2012-08-20 04:29:42 UTC
Permalink
Updates:
Labels: -Pri-2 -OS-Windows Pri-3 OS-All

Comment #5 on issue 137203 by ***@chromium.org: form submit is not
working in chrome
http://code.google.com/p/chromium/issues/detail?id=137203

I confirmed Google Chrome 21, Safari 5, Firefox 14, and Opera 12 have the
same behavior. Only IE9 reloads the page on the second submission.

I'm not sure this should be fixed or not. Because the form method is GET
and the URL after submission is identical with the URL before submission,
browsers would like to do re-use the current document. This behavior is
reasonable.
--
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/a/chromium.org/group/chromium-bugs
Loading...