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

Reply via email to