I am using codeigniter framework
how to send alert email throw this javascript
function?
Is there way to send by javascript
or use php mailto
?
I want it before this line
alertMini('<?php echo $this->lang->line(374); ?>','success');
my code is
function ajax_apply_job(job_id){
$.post(
'<?php echo base_url("account/ajax_check_login"); ?>',
{},
function(r){
if(r==1){
$.post(
'<?php echo base_url("job/ajax_apply_job"); ?>',
{job_id:job_id},
function(data){
var data=data.split("||");
if(data[0]==1){
alertMini('<?php echo $this->lang->line(374); ?>','success');
}
if(data[0]==0){
alertMini('<?php echo $this->lang->line(375); ?>','warning');
}
$("#ajax_apply_job_"+job_id).html(data[1]);
}
);
}else{
alert(0);
}
}
);
}