You are browsing the archive for code.

jQuery Keyz Plugin

February 24, 2010 in jQuery Plugins

The purpose of this plugin is to easily facilitate the end user to create and hook key presses for their own use. Usually you would need to know what key links with which keycode etc. Usage It’s as easy as these steps: Include jquery – either from CDN or local source Include jquery.keyz.js call the [...]

Active Module Based Config with Zend Framework

January 4, 2010 in Zend Framework

I’ve recently taken to using Zend Framework for a project that I needed to bring up to date. I won’t go into the pros and cons of choosing a framework as there are many much more qualified people who have done a much better job of this subject than I would or could. So Instead [...]

PHP – Chmod-ed to Windows hell and back

March 10, 2009 in PHP

Today has not been a good day. With various things going wrong, I was please that I had got the file upload code done for a site i’m working on. All I needed to do was make sure that the file had the right permissions and then edit it via GD (via an image editor [...]

MySQL – Conditional Joins

March 7, 2009 in MySQL

For the most part I’ve used many JOINs in my queries since I leartn how to use them and what they were good for, I much prefer to use an Inner Join over the the Implied join of a WHERE statement. For those who haven’t yet learnt about JOINs you might be using an implied [...]

Enhancing your listings with jQuery and QuickSearch

February 17, 2009 in jQuery Plugins

Ever Wanted to have a way to filter/search a list without having to code extra to the serverside? Well maybe the jquery QuickSearch plugin from rikrikrik.com might be the answer

jQuery image Preloader Plus Callbacks

February 11, 2009 in jQuery Plugins

Hi all, After comments on the previous version by Roberto, I looked into creating callbacks within the code so that it can be used in the way that Roberto had outlined, also I used it as a way to improve my knowledge a little. After a while I got stuck and figured out a potential [...]

php: processing raw Post / Get Values

January 21, 2009 in PHP

I just added a jquery plugin to call head requests, but because you are not doing a get or post request php won’t convert the values that are sent back to their form. To get around this we have to use the php://input stream ( is that the right word?) which is handy for a [...]

jQuery plugin: ajax Head Request

January 21, 2009 in jQuery Plugins

I recently looked into the head request for pulling data without much overhead. PHP can send headers out to the browser in a response.. so I looked into a way to get these headers. I came across a page that outlined using head requests via the xmlhttprequest object. I looked inside jQuery for this functionality [...]

php: smarty assign content plugin

January 12, 2009 in Smarty

I needed to assign a block of content to a variable instead of just a value.. so i set about creating this plugin function smarty_block_assign_content($params, $content, &$smarty) { $smarty = clone($smarty); //Copy the original class, so there's no garbage variables after we finish if(!isset($content)) return; if (!isset($params['var'])) { $smarty->trigger_error("assign_content: missing 'var' parameter", E_USER_WARNING); return; } [...]

php: Menu Classes

January 12, 2009 in PHP

Recently I’ve been working on my own framework (we’ve all done it i’m sure) and part of this was a menu handling system. The basis really is simple, we have a menu item which really is just link and text. That menu item could have children, could be active and/or be selected. In this case [...]