[jQuery] jquery form plugin - post method do not work in firefox3
Hi guys,
I am just testing my application on firefox3 and found that form data after
doing post do not get submitted correctly ...
I am using APACHE::ASP mod perl. so following code is combination on perl
and javascript. And data posting is done by jquery form plugin.
Here is my simple test code:
<<<<<<<<<<<<<<<<<<<<<<<<<< this is testPost.asp file
<head>
<script src="js/jquery.1.2.6.js"></script>
<script src="js/form.2.12.js"></script>
<script type="text/javascript">
$(document).ready(
function() {
$('#myForm').ajaxForm({
dataType: 'json',
beforeSubmit:
function() {
alert('going to before submit');
},
success:
function(data) {
alert('alert after success');
},
error:
function () {
alert('Error in posting current data');
}
});
}
);
</script>
</head>
<form id="myForm" action="submitData.asp" method="post">
Name: <input type="text" name="name" />
Comment: <textarea name="comment"></textarea>
<input type="submit" value="Submit Comment" />
</form>