Closed
Bug 842404
Opened 13 years ago
Closed 13 years ago
using f18.02 form-->jquery processing fails to return data when more than 1 input fiels
Categories
(Core :: General, defect)
Tracking
()
RESOLVED
INVALID
People
(Reporter: rosebud4karl, Unassigned)
Details
User Agent: Mozilla/5.0 (X11; Linux i686; rv:18.0) Gecko/20100101 Firefox/18.0
Build ID: 20130201065344
Steps to reproduce:
attempted to create userid and password via form and jquery. That form uses 2 input elements. As a benchmark I was successful with a single input in a form.
Actual results:
Two things 1) going to the 2nd input field via cursor movement and enter key skips back to the first input field. 2) more importently, my response is not displaying for any forms with more than 1 input.
Expected results:
As it worked in firefox 3.6.34 and IE8 and Opera, I should be able to move to subsequent fields via cursor and enter. Also my text should return and display as it does in 1 input field forms.
I am using AJAX with JQUERY.
| Reporter | ||
Comment 1•13 years ago
|
||
Here is the HTML and JQUERY:
echo '<form name="form1" method="post" action="">';
echo '<td width="500" style="visibility:hidden;" id="td4">';
echo 'Add a new Patient:<br />';
echo "<label id='td19' for='nuname' style='color:blue;'>Username:";
echo '<input name="nuname" type="text" id="nuname" AUTOCOMPLETE="off" size="14">';
echo "<label id='td190' for='nupass' style='color:blue;'>Password:";
echo '<input name="nupass" type="text" id="nupass" AUTOCOMPLETE="off" size="8">';
echo '<input type="submit" name="Submit" id="sub" value="@" style="color:red;">';
echo "</form>";
JQUERY script:
$(document).ready(function () {
$("#sub").click(function () {
var input =
{
nuname: $("#nuname").val(),
nupass: $("#nupass").val()
};
$.ajax({
cache: false,
type: "POST",
async: false,
url: "create_new_user.php",
data: input,
dataType: "text",
success: function (result)
{$('#txt1').html(result);},
error: function (xhr,status,error)
{ document.getElementById('txt1').innerHTML=error;}
}); // for ajax
$('#td4').css('visibility','hidden');
return false; // to prevent page refresh
}); // for click
}); // for ready
txt1 to display msgs:
echo '<div id="txt1"></div>';
Attach a minimal testcase (or online), please.
Flags: needinfo?(rosebud4karl)
Keywords: testcase-wanted
| Reporter | ||
Comment 4•13 years ago
|
||
another way you can test it is to go to my test website at www.vatestsite.com and logon using
a username of tcarpenter with a password of bac. Then click on "add a new patient", use anything for a username, go to the password field by clicking in the password field. The cursor
will go back to the username field. In the past (with my prior firefox) the cursor would remain in the password field and allow input. When that is done, use the tab key to get to the password field, enter a password and click on the red @. This should produce a small message that the id was created. To show that this works with one input field, go back to the logon screen and logon to admin with a password of bac. There select "delete any logon id", enter the id you created and a message will be produced.
Your website seems to be broken.
I tried with the very old Firefox 4 and a new profile, same result as Firefox 18: cursor jumps from "password" to "username" and creating a new patient doesn't display a small message.
With IE9, the button "add a new patient" displays briefly the fields username/password then redirects to the page about "Notes", so I can't add a new patient.
So you surely need to fix your source code (like update jQuery maybe).
Keywords: testcase-wanted
| Reporter | ||
Comment 6•13 years ago
|
||
I'm using an older version of firefox, something like 3.2.24. The issue you saw in IE9 is a known issue and will be fixed today.
Your version is outdated, report bug about Firefox 18 (or Firefox 17 ESR) which is the latest stable version. Don't expect support for old versions.
| Reporter | ||
Comment 8•13 years ago
|
||
That's OK, I'll just have my customers avoid firefox.
I don't think most of your visitors are using Firefox 3.6.24 (and not 3.2.24) which has been released November 8th, 2011. In addition, 3.6 branch is EOL since April 24th, 2012 and has many known/exploited vulnerabilities and failures.
And as I said, your website is broken with Firefox 4 too.
| Reporter | ||
Comment 10•13 years ago
|
||
No, firefox is broken. Cancel this communication and don't contact me again.
Updated•13 years ago
|
Component: Untriaged → General
Product: Firefox → Core
Updated•13 years ago
|
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•