Hi James, Thanks for looking into my query.
the JSON variable which i return back is "succes" thats y it is "succes" instead of "success". can u give me any other solution for this. Regards Nizam On Mar 18, 6:18 am, James <james.gp....@gmail.com> wrote: > I didn't look through it deeply, but is: > if (data.succes){ > > suppose to be: > if (data.success){ > > On Mar 17, 2:45 am, nizzi <smdni...@gmail.com> wrote: > > > Hi, > > > Im using autocomplete plugin + form plugin + validate plugin. > > > The Code i use is > > > $(function() { > > $("#movie").autocomplete("getmovie.php", { > > width: 380, > > selectFirst: false > > }); > > $("#movie").result(function(event, data, formatted) { > > if (data) > > $("#mid").val(data[1]); > > }); > > var v = $("#form").validate({ > > submitHandler: function(form) { > > $(form).ajaxSubmit({ > > dataType: 'json', > > success: function(data) { > > if (data.succes){ > > > > $('#result').html(data.title+"<br/>"+data.content); > > v.resetForm(); > > } > > else{ > > > > $('#result').html(data.title+"<br/>"+data.content); > > } > > } > > }); > > } > > }); > > }); > > My problem is when i don't use autocomplete (which i do in another > > case) all works fine. > > But when i use autocomplete im not able to get the action after > > success. When i check the response code it is 200 OK. > > Can any one help me with this. > > > I face the same problem when i use TinyMCE along with form + > > validation. > > > Thanks in advance, > > > Regards > > Nizam