Skip to main content

Bug Tracker

Side navigation

#11254 closed bug (invalid)

Opened January 29, 2012 01:01PM UTC

Closed January 29, 2012 02:15PM UTC

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.

Attachments (0)
Change History (2)

Changed January 29, 2012 02:13PM UTC by zawmn83 comment:1

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';
?>

Changed January 29, 2012 02:15PM UTC by dmethvin comment:2

resolution: → invalid
status: newclosed

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

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