[jQuery] jquery form plugin - post method do not work in firefox3

2008-06-18 Thread pratikspace


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.



[jQuery] Re: jquery form plugin - post method do not work in firefox3

2008-06-18 Thread pratikspace


examples work fine. i dont know if this is something to do with perl. i am
using modperl just to print the post parameter. thats it. nothing hard. 
the sample code i have provided above works perfectly fine on older firefox
but not on firefox3. 
i am very puzzled. 

just to add some more info. 
if i check firebug on older firefox, i get post parameters in this format :

comment text
nameabc

and if i use firefox 3, i get following in firebug:
name=abccomment=text

I dont know if this is the possible problem. 

any more thoughts guys ?

thanks, 
P


malsup wrote:
 
 
 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.
 
 I've not seen any problems with FF3.  Can you use the examples
 successfully?
 
 http://www.malsup.com/jquery/form/#code-samples
 
 Mike
 
 

-- 
View this message in context: 
http://www.nabble.com/jquery-form-plugin---post-method-do-not-work-in-firefox3-tp17991742s27240p17993913.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.