ajax code contains "PHP site_url" with parameters in ajax

I want to ask, is it possible, if the ajax code contains "PHP site_url" with parameters in ajax

this is the specific code:

"<a class='btn btn-info' href="<?php 'echo site_url("data_detail/detail_datas/vieworc/ " + item.NIK + "); '?>">Detail</a>"

this is the full code:

                 .done(function(dt){
                        if(dt != null){
                            console.log(dt)
                            table.rows().remove().draw();
                            $.each(dt, function(i, item){
                                table.row.add([
                                    item.Name,
                                    item.NIK,
                                    item.gender,
                                    item.PositionDesc,
                                    item.Shift,
                                    item.tgl,
                                    item.Attendance,
                                   "<a class='btn btn-info' href="<?php 'echo site_url("data_detail/detail_datas/vieworc/ " + item.NIK + "); '?>">Detail</a>"
                                ]).draw();
                            })
                        }
                    })
                });

12 thoughts on “ajax code contains "PHP site_url" with parameters in ajax”

  1. pharmacie de garde epernay pharmacie lafayette metz , pharmacie ramdani argenteuil pharmacie boulogne billancourt avenue jean jaures , [url=https://kit.co/tentga/promethazine-livraison-canada-promethazine-vente-libre#]Promethazine livraison Canada, Promethazine vente libre[/url] pharmacie leclerc plerin [url=https://kit.co/diemye/acheter-careprost-3-ml-pas-cher-careprost-livraison-canada#]Careprost livraison Canada[/url] , pharmacie normale bordeaux pharmacie bio avignon , medicaments arthrose. pharmacie brest langevin act therapy nyc [url=https://kit.co/mostdoub/motrin-prix-sans-ordonnance-motrin-sans-ordonnance-france#]Motrin prix sans ordonnance, Motrin sans ordonnance France[/url] , pharmacie bailly chennevieres sur marne. pharmacie de garde fontenay sous bois, act therapy hooks pharmacie reims . pharmacie zac aix en provence, pharmacie leclerc gonfreville l’orcher pharmacie boulevard st quentin amiens pharmacie ouverte 24/24 .

    Reply

Leave a Comment