javascript - Jquery ajaxForm() doesn't fire 'success' although it works successfully -


today trying send files via ajax request using jquery ajaxform plugin. however, doesn't fire success function uploads file without javascript run time or compile time error.

here code:

<table id="haberresmiekle"> <form action="action.asp?kmt=resimyukle" method="post" enctype="multipart/form-data" id="haberresmiekleform"> <tr>     <td><input type="file" name="file"></td> </tr> <tr>     <td><input id="b" type="submit" value="gonder"></td> </tr> </form> </table> 

and

<script>  $("#haberresmiekle").dialog({autoopen:false,title:"resim yukle"});         var options={                 target:"#haberresmiekle",                 success:function(){alert('x');$("#haberresimekle").dialog('close');}             };         $("#haberresmiekleform").ajaxform(options);  $("#b").button(); </script> 

thanks help

note: has been resolved.

yor script nothing(except in ie) long dont use valid selectors.

$(haberresmiekleform)-> $('#haberresmiekleform') $(haberresmiekle)    -> $('#haberresmiekle') $(button)            -> $('#button') 

Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -