Pagination interfere in buttons - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Pagination interfere in buttons (/showthread.php?tid=61424) |
Pagination interfere in buttons - pompeu - 04-14-2015 Hello everyone, one more question , I have a system made in codeigniter if they want to see better understanding access : claranet.com.br/sgi3 User : admin@admin.com Password : 123456 On the menu , click on register after leaders , this screen appears and all entries appear along paging, take a test , before clicking any link paging click on new user or edit or delete will see that the modal appear normally , but after clicking on a link of the paging buttons no longer work , they work just the controller address sgi3 / leaders That's my problem , where I went wrong and how can I fix it? Thanks in advance RE: Pagination interfere in buttons - pompeu - 04-14-2015 Problem is the id of the div that generates the modal , how could I pass a variable to monitor the links to the modal is called ? I believe it should be something simple but I can not ^^ . would pass the paging of data via post? in my pagination case is being made by url Thank you all RE: Pagination interfere in buttons - pompeu - 04-16-2015 Hello, because my models are activated only when the controller url ? example: http://localhost/my_program/my_controller but if I I trigger a paging the url changes right? example: http://localhost/my_program/my_controller/function/id_pagination all my models are no longer triggered. I am very urgency to resolve this, please help me ^^ PS: I can provide the source of necessary Thank´s RE: Pagination interfere in buttons - RogerMore - 04-17-2015 Hey man, You are using the following line to load your bootstrap js: Code: <script src="../sgi3/assets/js/bootstrap.min.js"></script> So when you choose lideres from the menu, the path to your application is http://claranet.com.br/sgi3/lideres and the real path to the js file is http://claranet.com.br/sgi3/assets/js/bootstrap.min.js When using the pagination, the file path of your script changes to http://claranet.com.br/sgi3/lideres/index/4. Now the path to the js becomes http://claranet.com.br/sgi3/lideres/sgi3/assets/js/bootstrap.min.js which results in a 404 Page not found page. Adios the ../ and use use something like PHP Code: <script src="<php echo base_url(); ?>assets/js/bootstrap.min.js"></script> Good luck! RE: Pagination interfere in buttons - pompeu - 04-17-2015 yes , you are correct , that part resolved , but what about the paging ? to enter my program on the screen of leaders, http://www.claranet.com.br/sgi3/lideres click the new leader button opens a modal , so it is with the edit button and delete , but if I click on a link in the paging url changes , example : http://www.claranet.com.br/sgi3/lideres/index/4 then the buttons do not call more the modals I need help for that and I am urgently ^^ , just missing it so I'll continue my project ^^ Thanks for your help ^^ RE: Pagination interfere in buttons - pompeu - 04-17-2015 Oh my God neither told the <?php base_url(); ?> on my view footer that was it , I forgot it, rookie mistake Thank you for your help RogerMore , did I enchergar the course haha Resolved, everything working |