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
And NOW, the submitData.asp file in which i am just printing the post data
%
if($Request-Form(name)) { // if we get something in name, then give
proper results
print { result: \ok\};
} else {
print not ok;
}
%
!-- End of program--
So if i do this on FireFox version lesser than 3 , it works nicely. data is
submitted, i get proper alerts. BUT when i do this in FireFox3, i get the
error msg, because data is empty after doing post.
Can any please let me know why this could be happening ?
Anyone getting this issue on firefox3 ?
Please let me know.
thanks,
P
--
View this message in context:
http://www.nabble.com/jquery-form-plugin---post-method-do-not-work-in-firefox3-tp17991742s27240p17991742.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.