Error after integrate with adminlte - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: External Resources (https://forum.codeigniter.com/forumdisplay.php?fid=7) +--- Forum: Addins (https://forum.codeigniter.com/forumdisplay.php?fid=13) +--- Thread: Error after integrate with adminlte (/showthread.php?tid=74501) |
Error after integrate with adminlte - jep_ar - 10-02-2019 hello all!! thank you in advance for any help you can provide. i have a little codeigniter project with grocery crud and mysql. it is working fine but i want to use adminlte in order to add new features. im working with adminlte blank page template versions------------------------------------------- codeigniter 3.1.9 grocerucrud 1.6.3 adminlte 2 dir sctructure--------------------------------------- httdocs -----------web -----------------assets --------------------------adminlte controller------------------------------------------------------------------------------------------------------------------ PHP Code: public function f_cargadatos($v_where=null) { view----------------------------------------------------------------------------------------------------------------------- PHP Code: <?php $this->load->view('app_3widc/vh_3widc'); ?> error---------------------------------------------------------------------------------------------------------------------- Uncaught TypeError: $(...).dataTable is not a function at loadDataTable (datatables.js:141) at HTMLTableElement.<anonymous> (datatables.js:59) at Function.each (jquery.min.js:2) at w.fn.init.each (jquery.min.js:2) at HTMLDocument.<anonymous> (datatables.js:52) at j (jquery-1.11.1.min.js:2) at Object.fireWith [as resolveWith] (jquery-1.11.1.min.js:2) at Function.ready (jquery-1.11.1.min.js:2) at HTMLDocument.J (jquery-1.11.1.min.js:2) tries--------------------------------------------------------- add all jquery loads at the end of adminlte "after jquery was loaded" PHP Code: <!-- jQuery 3 --> Any ideas? im not developer but i will try to answer all your questions to anyone interested in help me best regards **EDIT: added code tags for readability! ** RE: Error after integrate with adminlte - InsiteFX - 10-03-2019 For one your loading jQuery twice, once for AdminLTE and then your loading it again for Grocery CRUD. So you are over writing the first jQuery with an older version. I would download the newest jQuery version 3.3.1 and just use it. RE: Error after integrate with adminlte - jep_ar - 10-03-2019 (10-03-2019, 08:05 AM)InsiteFX Wrote: For one your loading jQuery twice, once for AdminLTE and then your loading it again thank you very much for your answer but 2nd "load" PHP Code: <!-- is really necesary update JQUERY? do you think that will solve all problems? this code without adminlte works fine and JQUERY version loaded is that one comes with adminlte template RE: Error after integrate with adminlte - InsiteFX - 10-03-2019 Your loading jQuery twice, see below. PHP Code: <!-- jQuery 3 --> See the remarks on the far right. RE: Error after integrate with adminlte - jep_ar - 10-04-2019 (10-03-2019, 05:52 PM)InsiteFX Wrote: Your loading jQuery twice, see below. thank you InsiteFX, you were right. i thought that line was commented but no. i've deleted and still getting problems loading grocery crud datatables. i keep googling and waiting for some help.- checking adminlte requirements it runs with jquery1.11+ same that grocery crud RE: Error after integrate with adminlte - InsiteFX - 10-05-2019 I run AdminLTE using jQuery 3.3.1 just fine. If you run into problems jQuery has a migrate utility for it. |