Sep
23
2011

Javascript Round Number and Display Two Decimal Points

Quick tip of the Day: Javascript Rounding and always display Two Decimal Points Example:

Sep
2
2011

Get URL Variables with Javascript

Today I needed a quick function to read URL variables in JavaScript. The code had to be library/framework independent as well as be cross browser compatible. Syntax: getUrlVars(variableName) Arguments: variableName – (string, optional) The variable name to search for. Returns: If variable name provided will return the value of the variable (string), if the variable name does not exist will return false (boolean) If variable name not provided will return an object containing all key/value […]

Jun
25
2011

PHP if statement with multiple not equal conditions

I like to think of this one as AND OR confusion. This is based on actual code found within Sugar CRM so if it threw you for a loop your not alone. I have reported the bug to them, however as of 6/25/2011 it still has not been addressed. Now lets make sure we do not fall victim to this. Ok this is a simple one however I cannot tell you how many times this […]

Jun
23
2011

PHP Create Awesome Slugs

This is the function I use when creating slugs with PHP. It accepts a string and removes any special characters other than – and _ It will than replace spaces with dashes, underscores with dashes and double dashes with a single dash and finally returns makes the entire string lower case. Example use: This function will make SEF (search engine friendly) URL creation a snap!

Jun
23
2011

PHP Get URI Segment(s)

Here is a set of two php functions that I use regularly to quickly get a specific URI segment or return all segments available. These are very helpful if you have written or are writing your own custom SEF urls How to use: Happy Coding!

Jun
22
2011

Photoshop One Click Save to Web

Some times you run across items on the internet that are so life changing that you have to stop everything and share the knowledge. Well this is one of those tidbits that will surely save me time every single week. Normally when a designer hands off a photoshop file to me to extract one graphic to replace another on the web, or a simple element slices are way over kill. Plus more and more all […]

Jun
5
2011

MooTools custom scrollbar

So I am working on an awesome project for a local restaurant Abreo in downtown Rockford IL (link will be provided upon completion) and found the need for a mootools custom scroll bar. Well not wanting to reinvent the wheel I thought I would take a peek around the web to see what was available. I found just what I was looking for in Arieh Glazer Class. Now I did find a few bugs in […]

Jun
4
2011

Dim page on hover

If your a developer I would recommend spending a portion of your downtime or much needed break (think, head has been in the code to long and your starting to over analyze your logic) scouring the web for little coding gems. This will do a few things: If you find something cool it may inspire you on your current project, or Integrate nicely into a prior project or at the very least be something cool […]

Jun
3
2011

Introducing mootools.tipsy

Updated 08/22/2011 to version 1.0 After developing this blog I was introduced to tipsy a very popular jQuery plugin. I was so impressed with it that I thought I would take a look to see if anyone has ported it to mooTools. After poking around the “interwebs” i couldn’t find anything that I thought was close enough… So I though I would go ahead and bang out the code. No CSS styles or Images required […]

Jun
3
2011

Javascript equivalent of PHP’s in_array() function

The in_array() function of PHP is super helpful when you need to quickly check a variable against an array of possible options. I am unsure why there is not a built in equivalent for javascript. That is one of many reasons why you may want to research mooTools or jQuery and start using it in your projects. From MooTools: Array method: contains Tests an array for the presence of an item. Syntax: Arguments: item – […]

Pages:«123»
Show/Hide Footer Actions

Status: Available for your project.