I’m working on a small personal project, arthritis and experimenting with some new (to me) things. I’m using CodeIgniter as a PHP framework and Twitter’s Bootstrap for the layout and design. Bootstrap is actually a conglomeration of other neat concepts nicely packaged, viagra 40mg one that I’ve already been using, decease the 960 Grid System (although their’s is slightly modified), and LESS.css which I’m totally loving.
One of the issues I ran into pretty quickly is Modal dialog boxes. I have a view in my web app where the user is presented with a table of data, and they can click on the table row to edit that data. The edit box is a modal popup that is filled in with the data for them to edit.
After googling around I came across two sites that each provided part of the answer I was looking for. The first site I found was at ThePhuse.com were I found an article outlining a good way of implementing clickable table rows. The second site was more specifically about loading dynamic content into Bootstraps’ tabs.
I took the two sites and mashed up the knowledge and came up with the following code: