Aaron Saray

open source programmer,
web developer

entrepreneur, author
and musician

My Blog

contains PHP, Web and business/entrepreneurial related content. Please join in the conversation!

Category Archives: javascript

Creating a custom Zend Framework Body Script helper

It drives me nuts that the best practices with javascript that is not required for the initial rendering of your application is to be placed at the bottom of the document, yet frameworks (like Zend Framework) do not support that … Continue reading

Posted in javascript, zend framework | Tagged , | 2 Comments

setTimeout proper syntax

The javascript function setTimeout can be used to execute a function after a specified amount of delay. It uses the javascript callback pattern. Its important to use the callback pattern correctly, however, or you may get different results than you … Continue reading

Posted in javascript | Tagged | Leave a comment

Scoping your Bookmarklet Correctly

I’ve been lucky so far. I’ve used variable names and functions in my bookmarklets that weren’t that common. Then, one day, I chose a variable named something very common (x, counter, etc). I noticed that my bookmarklet accidentally overwrote some … Continue reading

Posted in javascript | Tagged | Leave a comment

Google Analytics Campaign Link Builder Bookmarklet

I was thinking about how difficult it is to create custom links for our campaigns at “the big L” – so I decided to create my own function to build these. To top it off, I’ll make it a bookmarklet. … Continue reading

Posted in javascript | Tagged | 1 Comment

jQuery form plugin does not submit submit buttons named submit

… in Google Chrome. Yep. I tested in Firefox and Internet explorer and had no problem. However, using the form plugin and submit input types with the name of ‘submit’ did not work. I changed their name to ‘submitbutton’ and … Continue reading

Posted in javascript, jquery | Tagged , | Leave a comment

jQuery Validation – greedy on your forms?

I was creating a page with two forms on it. I ran into an issue where I would fill out one form, and it would fail validation. Then, I tried to do the other form with passing fields, and it … Continue reading

Posted in javascript, jquery | Tagged , | Leave a comment

jQuery show password toggle

More and more people are requesting that their passwords not be masked – or that they have the option to toggle them. If the visitor is using Firefox, this has been a relatively easy feat. Simply add a checkbox and … Continue reading

Posted in javascript, jquery | Tagged , | 2 Comments

How to handle AJAX errors with jQuery

Many times, the ‘error’ property of the jQuery AJAX call is ignored. Most often, you’ll see just references to the success portion. The error attribute of the $.ajax() is a callback – and receives three parameters. These are the XMLHttpRequest … Continue reading

Posted in AJAX, javascript, jquery | Tagged , | Leave a comment

Using Google Charts to make QR Codes

Google Charts is my hero yet again. This time, I happened to notice that they have a chart in their API for QR Codes. Considering I was just searching google for a PHP class to do this, I was pretty … Continue reading

Posted in javascript, jquery, Misc Web Design | Tagged , , | Leave a comment

Twitter @anywhere proof of concepts

First off, let me just remind you to not be an idiot like I was. I simply found the documentation here and here and went to town. After hours of trying to figure out exactly what was going on, I … Continue reading

Posted in javascript, twitter | 3 Comments