Dear,
I'm using CKEditor from long time. I have used it with PHP and mysql. But i tried to practice it with ajax form handling.
Same ajax code use to SAVE and UPDATE the record. UPDATE record takeplace when if there is same record presents. SAVE is done when it will be new record.
When SAVE, its working by one button click. But when i'm going to UPDATE this it requires to click the update button twice..Then it will save.
Same ajax code use for SAVE & UPDATE, Then there is no issue, And when click UPDATE button twice it update successfully. That no issue on getting data from form and record to the database.
Please can anyone assist me?? I'm stuglling to fix this issue.
My Name: Udara
Email: udara86@gmail.com
I can't understand why this happens
Here is the code of form handing ajax part;
<script type="text/javascript">
$(document).ready(function(){
$("#frm_form").validate({
debug: false,
rules: {
txt_lab_ref_no: "required", //Text box names
txt_refferal: "required", //Text box names
txt_process_info: "required", //Text box names
},
messages: {
},
submitHandler: function(form) {
// do other stuff for a valid form
$.post('php_ajax/proc_lab_histo_save.php', $("#frm_form").serialize(), function(data) {
$('#results').html(data);
});
}
});
});
</script>
In above, 'proc_lab_histo_save.php' will do the PHP server-side data manipulation part....
If you need to see more portions of my code, I can give it to you.