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

Use your own short domain while waiting for BitLy Pro

If you’ve checked out BitLy Pro, you’re probably pretty excited like I am. I saw it and immediately registered saray.me for a short URL. When I went to sign up, I found it was still in a queue system where … Continue reading

Posted in javascript, Misc Web Design | Tagged , | 2 Comments

Branding your Tweets using @anywhere tweetbox

With Twitter’s new @anywhere features, it’s now possible to brand your tweets from your own web page. While I still like using Tweetdeck or Seesmic for my actual interaction on twitter, I have started tweeting a bit from my own … Continue reading

Posted in javascript | Tagged , | 18 Comments

Fixing c:\fakepath in filestyle jquery plugin

The other day I ran across an issue with the FileStyle jquery plugin. Whenever a new file was chosen, windows and Internet Explorer would put c:\fakepath\ before the filename. Turns out its not FileStyle’s issue – but a security feature … Continue reading

Posted in javascript, jquery | Tagged , | 4 Comments

Javascript and CSS Compression and Cache

I’ve been researching caching and compression techniques for my external resources for some time. My first design of JEMDiary was very greedy with HTTP connections. Couple that with having a less-than-perfect host (Dreamhost bleh…), users could feel the burn. I … Continue reading

Posted in CSS, javascript, Misc Web Design | Tagged , , | 2 Comments

Making Friendly Javascript Errors – Client and Server

The more I look at my code I wrote in my earlier posts about the unknown _popupControl() function and the Javascript Error Handler, I see opportunities to leverage these errors into useful user interactions. Doing a service for your visitor … Continue reading

Posted in javascript | Tagged | Leave a comment

Using Google Analytics Asynchronously

I came across the following link on google’s code pages: http://code.google.com/apis/analytics/docs/tracking/asyncTracking.html It basically details the asynchronous loading of google analytics. I found this to be a very cool addition to an already powerful package that I rely on. However, one … Continue reading

Posted in javascript | Tagged , | 2 Comments

document.URL vs document.location.href

When reviewing some javascript security ideas, I came across the document.URL property. Turns out that my normal way of retrieving the location (document.location.href) is both a getter and a setter. The document.URL is just a getter. Check it out with … Continue reading

Posted in javascript | Tagged | 1 Comment

Javascript Snow Fall with buildup

Mr. Skowron (his business) was working on a flash animation for a client that had a snow fall. What really irked me about the end result, was two things. a) it was in flash b) the snow didn’t build up … Continue reading

Posted in javascript | Tagged | 2 Comments

Auto Failover for CDN based Javascript

Using my javascript error reporter code helps me get a better understanding of what my clients are experiencing when visiting my website. One thing I did notice was the failures from time to time of Google’s CDN based Jquery. To … Continue reading

Posted in javascript, jquery, Misc Web Design | Tagged , , | 4 Comments

Printing a small segment of the page using JQuery

Using Yahoo’s Grid Tools, I created a pretty decent page layout. After all this was complete, I needed to generate a printable version of only a portion of the site. This was a particular set of instructions. I decided to … Continue reading

Posted in CSS, javascript, Uncategorized | Tagged , | Leave a comment