Error Handling

In the world of the Internet, as a developer, we need to protect ourselves from prying eyes. One of the easiest ways a hacker can crack your code is if you tell them what they did wrong. For that reason, it’s important to suppress errors from the public. But, this doesn’t mean we should eliminate the knowledge when an error occurs and what triggered it.  For that reason, I have written a fairly simple class that will allow for error suppression, error debugging and error reporting. When in debug mode, the error is displayed on...

read more

Tabs & Lists With Selectability

I’ve recently come up with a need to allow users to view a list of options from which to choose. Do to screen restraints and readability, I opted to use the tabbing functionality I wrote about previously. In the process, however, I wrote some javascript that allows me to add the ‘pick and choose’ functionality to any pair of lists, or single list, I choose. Single List Mode: This is real simple. The user has a list of items to select from. When the select the item, the ‘selected’ class is added to that item. When...

read more

jQuery Tabs With Ease

As usual, I always need something special in jQuery. I’m always able to find plugins out there, but they never everything I want, the way I want it done. Each always falls short somewhere. It either limits my design flexibility, is buggy or is just flat-out bloated with way more code than is necessary. I’ve written a tabs script for jQuery that is short and to the point while still allowing for design flexibility and ease. There’s nothing to it. Simply establish the tabs settings with your appropriate IDs and classes and...

read more

Database PHP Class

I’m back with another chunk of code. This time, it’s my database class. I got sick of coming across classes that didn’t have everything I needed, or didn’t do it correctly. One of my biggest problems was an inability to nest query calls within another query result’s output. Example: <?php // main query // gets a list of companies from the companies table $a = "SELECT id, company_name FROM companies"; $a = $db->query($a); while ($aa = $db->fetch_object($a) ) : echo '<div...

read more

jQuery Accordian without plug-ins & with a bit of design freedom

So you have a design and you have decided you want to use a jQuery accordion. You start to layout your design and implement the accordion only to find out that your design is going to cause problems with the standard accordion plug-ins. The problem with the standard accordion is that they require the child and header elements to be nested within a parent. Example: <div id="accordion-wrapper"> <h1>Clickable Header 1</h1> <p>Collapsible child 1</p> <h1>Clickable Header...

read more

tnyb.it Twitter app

tnyb.it’s Twitter app is a (not so) new Twitter app I am currently building at http://tnyb.it/twt. The purpose was to be a test bed for learning the Twitter API and to see how far I could push the abilities of web apps using HTML5, jQuery (along with custom JavaScript) and CSS3. After a few months of development, I had to stop working on the project due to my schedule constantly filling up with more and more paying...

read more