..or more modules you must have seen the iframes used for realtime result display. In this tutorial I'm going to show you how to insert them into your module and how they function. what..
AntiFTP uses wordlists in order to bruteforce FTP user accounts
/* edit the form and add a form field */
$(document).on("click","input.editfile",function(e){
e.preventDefault();
$('div.clear#filenames').after('<div class="cc_record" id="editname"><div class="flt pad3 w100"><b>new name</b></div><div class="flt pad3"><input type="text" name="sNewName" value="" /></div></div><div class="clear"></div>');
$('input.editfile').after('<input type="submit" name="submit" class="changename" value="Change" />');
$('input.editfile').remove();
});
/* send logfile name change request to json file */
$(document).on("click","input.changename",function(e){
e.preventDefault();
dataString = $("form.logform").serialize();
$.ajax({
type: "POST",
url: "JSON/log_edit.php",
data: dataString,
dataType: "json",
beforeSend:function(){
$('input[type="submit"]').attr('disabled','disabled');
},
success: function(json){
if(json.jresult==false){
$('input[type="submit"]').removeAttr('disabled');
alert(json.jmessage);
}
else{
$('form.logform').hide('slow');
$('form.logform').after('<div class="cc_summary emboss borderr5 border1pxtrans pad5 edgeglow"><div class="embosshdrnocenter border1pxtrans pad5">RESULT</div><div class="cc_record"><div class="flt pad3">'+json.jmessage+'</div></div></div><div class="clear"></div>');
}
}
});
});