Category Archives: Technology & Code

Technology, gadgetry and code are just plain awesome, you can’t really deny it. So when I come across something that excites me or makes my life easier or simply gives us a view as to a very possible future that we might be moving towards, I can’t help but share it with the rest of you here on the CodeUnit of Craig.

jQuery: Invert a Selection of Checked Checkboxes

If you have a group of checkboxes on a page, sometimes it is quite nice to give the user some quickfire controls that allows him to select all or select none at a click of a button. Similarly, it is pretty cool to give him the option of inverting his current selection, in other words checking all of those checkboxes currently unchecked, while unchecking all the currently ticked checkboxes. Continue reading

Posted in Technology & Code, Tutorials | Tagged , , , , | 1 Comment

jQuery DataTables: Simple Row Highlight Example

Today’s tip looks at how you can quickly and easily implement a visually helpful hover-based row highlight on any of your datatable objects.
Continue reading

Posted in Technology & Code, Tutorials | Tagged , , , , , , , | 7 Comments

jQuery DataTables: How to Force Specific Column Widths

Today’s tip looks at how you can specify what column widths to use in your DataTables implementation, instead of relying on the default auto column widths assigned by the plugin. Continue reading

Posted in Technology & Code, Tutorials | Tagged , , , , , | 1 Comment

FPDF PHP PDF Generator: How to Wrap Long Lines of Text in Tables

I have mentioned the useful FPDF PHP PDF generating library before, but today I’m quickly going to point out how you can solve the problem of inserting extra long lines of text into a table and forcing the table to automatically wrap or linebreak all of your text without simply chopping it off at the end when it reaches the right hand border of the cell. Continue reading

Posted in Technology & Code, Tutorials | Tagged , , , , , | 3 Comments

Accessing Values in Javascript JSON Objects with Keys containing Hyphens (Dashes)

However, if we tried the same thing with the “message-data” key, you will note that this will fall over syntactically straight away – all because of that silly hyphen (dash). Continue reading

Posted in Technology & Code, Tutorials | Tagged , , , , , | Leave a comment