Quantcast
Channel: Active questions tagged email - Stack Overflow
Viewing all articles
Browse latest Browse all 29758

How to send alerts message inside javascript

$
0
0

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);

         }

     }

     ); 

    }

Viewing all articles
Browse latest Browse all 29758

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>