Skip to navigation
Simple selector forward with js and codeigniter
08.02.14
base_url(),'controller'=>$this->router>class,'method'=>$this->router->method]) ?>'> if(document.getElementById('select_mc')) { document.getElementById("select_mc").onchange=function(){Go.mc(this)}; } }); var Go = { mc: function(e) { var data = JSON.parse(document.getElementsByTagName('body')[0].getAttribute("data-js") ); var id = e.options[e.options.selectedIndex].value; var url = data.base_url + "admin/" + data.controller + "/" + data.method + "/" + id + "/" + new Date().getTime(); window.location=url; } }
Reply
Anonymous
Information Epoch 1732526708
Make every program a filter.
Home
Notebook
Contact us