Bug Tracker

Opened 12 years ago

Closed 12 years ago

#11254 closed bug (invalid)

Remote Validation, Submit button missing in POST

Reported by: anonymous Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.4.4
Keywords: Cc:
Blocked by: Blocking:

Description

For ticket http://dev.jquery.com/ticket/3862

I'm trying with JQuery 1.4.4 and Validation Plugin 1.9, this issue still happen when user click submit button without set cursor or change anything to the field that has remote validation.

Change History (2)

comment:1 Changed 12 years ago by zawmn83

Below is the code that I tested

<?php
	var_dump($_POST);
	if(isset( $_POST ['btnupdate'] )) 
	{		
		echo 'POST success';
	}
?>
<html>
<head>
<script language="javascript" src="javascript/jquery.js"></script>
<script language="javascript" src="javascript/jquery.validate.min.js"></script>		
<script language="javascript">

	jQuery(document).ready(function() 
	{		
		jQuery("#frmeditfriend").validate({
			'rules':{
				'txtemail':{'remote':'friend_exec.php'}
			},
			'messages': {
				'txtemail':{'remote':'Email already existed'}
			}
		});
	});
</script>
</head>
<body>
	<form method="post" id="frmeditfriend" name="frmeditfriend">
		<label>Email :</label>
		<input type="text" value="test@gmail.com" id="txtemail" name="txtemail" />
		<p>
			<input type="submit" id="btnupdate" name="btnupdate" value=" Update " />
		</p>
	</form>
</body>
</html>

In the friend_exec.php, for testing I put below code

<?php
	echo 'true';
?>

comment:2 Changed 12 years ago by dmethvin

Resolution: invalid
Status: newclosed

This is not a jQuery core bug. Please report bugs here:

https://github.com/jzaefferer/jquery-validation

Note: See TracTickets for help on using tickets.