codeigniter - Dialog box showing ajax success response disappears immediately -


i uploading both data , files in 1 form using ajax in codigniter , displaying ajax success response in dialog box, dialog box disappears immediately, not showing result few minutes.. here code..

$(function(){ $("#pushform").submit(function(){ var formdata = new formdata($(this)[0]); $.ajax({     url:'<?=base_url()?>addpush',     type: 'post',     data: formdata,     async: false,     success: function (response) {     document.getelementbyid('ajaxresult').innerhtml=response;         $('#result').dialog({             autoopen: true,             height: 300,             width:500,             modal: true,             duration: 5000         });     $('#dialogalert').hide();     $('#sample').load("<?=base_url()?>pushnotify");     },     cache: false,     contenttype: false,     processdata: false }); return false; }); 

please me solve problem

did u check line: $('#dialogalert').hide(); may that's culprit!!!


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -