HTML Table Class on CodeIgniter 2.0

Posted by on Aug 31, 2010 in CodeIgniter, PHP | 3 Comments

CodeIgniter 2.0 is coming out soon, so lets start studying the changes done to the HTML Table Class in the dev-release. One of the most requested features was the ability to set tag attributes to individual cells. On CI 2.0 this is completely possible, however, since the documentation is not fully updated yet, I decided […]

Element indexes and jQuery

Posted by on Aug 10, 2010 in jQuery | No Comments

Once the DOM is structured by the browser, each element in our HTML page has an index relative to its parent. Retrieving an element’s index with jQuery is an easy task, and it is so useful that it can save you a couple of lines of code.

Change selected option by value on select list with jQuery

Posted by on Aug 10, 2010 in jQuery | 3 Comments

You have a select element, and you need to “select” one of its options based on one of its values. What you do is use the “selected-selector” of jQuery to do it in a single line. Lets say I have the following select element and I need to dynamically select the option with a value […]

Fix / workaround for the z-index problem on IE7

Posted by on Aug 9, 2010 in CSS, XHTML | No Comments

IE7 behaves strangely when we talk about z-index. It doesn’t always respect the z-index values of our elements. However, if you come around this weird stuff, just add a higher z-index to the parent of the element you want to put above everything else. Don’t ask me why this works but it does! Lets take […]