What, who, where am I?!?
Craig Lotter is a web developer based in Gordon's Bay, South Africa, who seems completely incapable of shaking off that pesky inner child within, the one that forces him to love all things animated or hand drawn.
The Rugged Rock of Craig contains snippets of his life, popular culture and all the important things like anime, manga, games and comic books. The CodeUnit of Craig on the other hand contains the more serious stuff like code snippets and tutorials, while the House of C chronicles his foray into the world of web comics.
For which it never seems he has enough time anyway.
CodeUnit Post Archive
Rugged Rock Studio
Category Archives: Technology & Code
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
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
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 auto width, column width, dataTables, jQuery, plugin, width
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 fpdf, line break, multicell, pdf, text wrap, wrap
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 dash, hyphen, javascript, json, key, object
Leave a comment






