Unable to open bootstrap modal window |
[eluser]Unknown[/eluser]
I'm new to CodeIgniter and bootstrap and i'm having some problems to open the modal javascript. Here whats happening, i have a controller x and if i load a page from the index function it all works fine, but if a load from another function my bootstrap modal windows are not opening Code: class X extends CI_Controller{ My html would be like Code: <div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> Now if i use jquery to open it, only opens when my url is http://mysite/x and when i load from http://mysite/x/not_index it cant open Code: $('#myModal').modal('toggle') i was able to open it using javascript changing the attributes from the id MyModal but i lost the nice effects that bootstrap has. Does anyone knows hot to fix this? Thanks! |
Messages In This Thread |
Unable to open bootstrap modal window - by El Forum - 03-22-2013, 08:57 AM
Unable to open bootstrap modal window - by El Forum - 03-22-2013, 09:24 AM
Unable to open bootstrap modal window - by El Forum - 03-22-2013, 10:42 AM
Unable to open bootstrap modal window - by El Forum - 03-22-2013, 01:20 PM
|