Form submissions unsubmittable by mouse-click using AJAX unless form is interacted with first.




13 years ago
12 years ago


(Reporter: jordan, Unassigned)


1.0 Branch
Windows XP

Firefox Tracking Flags

(Not tracked)


(Whiteboard: CLOSEME 06/27, URL)


(1 attachment)



13 years ago
User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7

While authoring an AJAX based ACL controller for a web-application I was writing; I noticed that the form would not submit unless it was interacted with first.  For example, I would have to click the form submission button twice or interact with a selection box before Mozilla will complete the submission.

There are unforunately a lot of possibities for error and a lot of fingers to point at when reporting an error such as this so I have attempted to be dilligent as possible.

1.  I used Venkman to step through the code; it appears as though onsubmit isn't calling the appropriate handlers in (the now infamous) prototype.js; the cause is uncertain but this is about as far as I could debug things.
2.  I tested using IE 6.0, and Opera 8.5 (Build 7700), both did not exhibit the failure mode.
3.  I downloaded the newest FireFox daily build (v1.7.12, downloaded 19-Nov-2005 15:17) and it too displayed the failure mode.
4.  I reproduced the failure mode as well with Mozilla suite v1.7.12.

Reproducible: Always

Steps to Reproduce:
1. Load
2. Click "Delete Role", DOM will change slightly, form will NOT submit.  This is the primary failure mode.
3. Click "Delete Role" again.  Form WILL submit.  All other form submissions will likewise succeed after this point.
4. Press reload.
5. Click a submit button for any other form element; form will NOT submit.
6. Click the same or any other submit button and form will submit.

Actual Results:  
1. Web pages loads.
2. Form does not submit, DOM adds extra linebreak after form; Venkman shows that callback registered to take place AFTER AJAX call is being called.  Submission appears to be skipped.
3. Form submits correctly.  All other page elements update correctly.
4. Page reloads.
5. Identical results to #2, above.
6. Identical results to #3, above.

Expected Results:  
All form elements should have submitted, the first time, when a form submit button is clicked.

I have no additional information at this time.


13 years ago
Version: unspecified → 1.0 Branch

Comment 1

13 years ago
Created attachment 216380 [details]
SUBMIT form works in IE but not in FF

30 item form not work in FF but 7 item form does work, see page at
source code here for 14 items, cut to 7 and it works
<body bgcolor="#CCCCFF">
<Table width =80%  Border = 5 bgcolor="#FFFFFF">
 <table width=90% Border=0  Align="CENTER"  bgcolor="#FFFFFF">
	  <TR> <TD>
	 <font color="#CC3300"> 
<h3>Blood Sugar Insight </h3>

<font face=ARIAL color="#0033CC"> <B>
This form works with Internet Explorer.  May not work right with Mozilla or FireFox.
Use the mouse click to position the cursor on a question to answer or change.
Below are fourteen time-honored questions to reveal blood sugar metabolism information .
<P>If you are interested to know what they say, take a few minutes to read and respond to each question.  Respond with an answer from zero to three.
Use the mouse to position the cursor to a question box.
Put a zero (0) in the box if it never applies to you.
<P>Put a one (1) in the box for MILD symptoms , once or twice a year
<P>Put a two (2) in the box for MODERATE symptoms, (occur several times a year)
<p> Put a three (3) in the box for SEVERE symptoms, aware of it almost constantly

<FORM action="&#109;&#97;&#105;&#108;&#116;&#111;&#58;&#115;&#99;&#114;&#105;&#98;&#101;&#49;&#52;&#48;&#45;&#104;&#101;&#97;&#108;&#116;&#104;&#64;&#121;&#97;&#104;&#111;&#111;&#46;&#99;&#111;&#109;?Subject=Blood Sugar Insight" method="post" enctype="text/plain"> 


Name&nbsp: <input type="text" name="name"
value="yourName" size="20"> 
Mail&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;: <input type="text" name="Email"
value="yourEmail" size="30">
Phone:&nbsp;<input type="text" name="phone" value="yourPhone" size="14">

<input type="text" name="callYn"
value="CallYN" size="6">
Comment: <input type="text" name="comment"
value="yourComment" size="60">
Born&nbsp;&nbsp;&nbsp;: <Input type="text" name="born" value="mm/dd/year" size="10"> &nbsp;&nbsp;&nbsp;&nbsp;
 Height and weight: <input type="text" name="htwt" value=" " size="15">



01.&nbsp;&nbsp;&nbsp; <input type="text" name="0142" size="2" maxLength=2 value=" ">&nbsp;&nbsp;&nbsp;&nbsp;Eat when nervous
02.&nbsp;&nbsp;&nbsp; <input type="text" name="0243" size="2" maxLength=2 value=" ">&nbsp;&nbsp;&nbsp;&nbsp;Excessive appetite
03.&nbsp;&nbsp;&nbsp; <input type="text" name="0344" size="2" maxLength=2 value=" ">&nbsp;&nbsp;&nbsp;&nbsp;Hungry between meals
04.&nbsp;&nbsp;&nbsp; <input type="text" name="0445" size="2" maxLength=2 value=" ">&nbsp;&nbsp;&nbsp;&nbsp;Irritable before meals
05.&nbsp;&nbsp;&nbsp; <input type="text" name="0546" size="2" maxLength=2 value=" ">&nbsp;&nbsp;&nbsp;&nbsp;Get "shaky" if hungry
06.&nbsp;&nbsp;&nbsp; <input type="text" name="0647" size="2" maxLength=2 value=" ">&nbsp;&nbsp;&nbsp;&nbsp;Fatigue, eating relieves
07.&nbsp;&nbsp;&nbsp; <input type="text" name="0748" size="2" maxLength=2 value=" ">&nbsp;&nbsp;&nbsp;&nbsp;"Lightheaded" if meals delayed
08.&nbsp;&nbsp;&nbsp; <input type="text" name="0849" size="2" maxLength=2 value=" ">&nbsp;&nbsp;&nbsp;&nbsp;Heart palpitates if meals missed or delayed
09.&nbsp;&nbsp;&nbsp; <input type="text" name="0950" size="2" maxLength=2 value=" ">&nbsp;&nbsp;&nbsp;&nbsp;Afternoon headaches
10.&nbsp;&nbsp;&nbsp; <input type="text" name="1051" size="2" maxLength=2 value=" ">&nbsp;&nbsp;&nbsp;&nbsp;Overeating sweets upsets
11.&nbsp;&nbsp;&nbsp; <input type="text" name="1152" size="2" maxLength=2 value=" ">&nbsp;&nbsp;&nbsp;&nbsp;Awaken after few hours sleep --- hard to get back to sleep
12.&nbsp;&nbsp;&nbsp; <input type="text" name="1253" size="2" maxLength=2 value=" ">&nbsp;&nbsp;&nbsp;&nbsp;Crave candy or coffee in afternoons
13.&nbsp;&nbsp;&nbsp; <input type="text" name="1354" size="2" maxLength=2 value=" ">&nbsp;&nbsp;&nbsp;&nbsp;Moods of depression --- "blues" or melancholy
14.&nbsp;&nbsp;&nbsp; <input type="text" name="1455" size="2" maxLength=2 value=" ">&nbsp;&nbsp;&nbsp;&nbsp;Abnormal craving for sweets or snacks

<input type="submit" value="Send">
<input type="reset" value="Reset">

<BR>To edit your answers, just use the mouse, click on a box you want to edit.  
<BR>If you RESET, all the answers will go empty.  

<a href="foodm0.html">Food Page</a> &nbsp; &nbsp; &nbsp; &nbsp;| &nbsp;&nbsp;&nbsp;&nbsp;
<a href="diabet03.html">Back to Blood Sugar Page </a>
<!-- Start of StatCounter Code -->
<script type="text/javascript" language="javascript">
var sc_project=918554; 
var sc_invisible=1; 
var sc_partition=7; 
var sc_security="24ef98da"; 

<script type="text/javascript" language="javascript" src=""></script><noscript><a href="" target="_blank"><img  src=";java=0&amp;security=24ef98da&amp;invisible=1" alt="web stats" border="0"></a> </noscript>
<!-- End of StatCounter Code -->

Reporter, do you still see this problem with the latest Firefox 2? If not, can you please close this bug as WORKSFORME. Thanks!
Whiteboard: CLOSEME 06/27
No response from reporter re: comment 2 -->INCOMPLETE.
Reporter, if you still see this problem with the latest release of Firefox 2, please reopen this bug. Thanks!
Last Resolved: 12 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.