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
Tag Archives: tutorial
jQuery: Checking or Unchecking All Checkboxes

Providing functionality to check all, uncheck all or even to invert the checkboxes currently selected on a page is pretty simple to achieve with either plain old JavaScript or the newer, more flashy jQuery library. Continue reading
Posted in Technology & Code, Tutorials
Tagged check, checkbox, code sample, invert, invert selection, jQuery, select all, select none, tickbox, tutorial, uncheck
8 Comments
How to Check if Your Javascript Function Exists

So the question I was then left with is how to check for the existence of a function before actually calling that function, the solution to which turns out to be fairly simple. Continue reading
Posted in Technology & Code, Tutorials
Tagged exists, function exists, function name, javascript, test, tutorial
Leave a comment
Photoshop: Text Tool Keyboard Shortcuts

In order to speed up your work using Photoshop’s powerful but sometimes quite frustrating text tool, here are a couple of handy keyboard shortcuts you might like to remember… Continue reading
Posted in Software & Websites, Tutorials
Tagged keyboard, photoshop, shortcuts, text, text tool, tutorial, typography
9 Comments
Inserting Backslashes into a Database Table with PHP

Sometimes you need to store things like file paths into a database table during your PHP script’s execution. However, on going back to the database after running your script, you might come across your path with all of its backslashes (\) missing! Continue reading
Posted in Technology & Code, Tutorials
Tagged backslash, database, escape, mysql, PHP, sql, tutorial
2 Comments
Getting the First Object Returned by a jQuery Selector

If for instance you have just used a jQuery selector to grab a whole lot of objects and now realize that in actual fact you only want to effect the first object that the selector returned to you, you can rest easy in the knowledge that jQuery as per usual has you covered. Continue reading
Posted in Technology & Code, Tutorials
Tagged :first, eq(0), first element, jQuery, selector, tutorial
Leave a comment






