From the category archives:

Javascript

Get latitude/longitude of Google map

I do a fair amount of work where I need to quickly get the latitude and longitude of a given address. Most of the time I just head over to maps.google.com and type in the address, then use the link button and copy/paste just the latitude and longitude. I find this method to be workable [...]

Read the full article → April 10, 2009

jQuery modal dialog

Coming from the world of Windows software development, the concept of a modal dialog box is an absolute expectation. Most often such dialogs are used to gather required information from the user while ensuring that nothing is clicked or altered in the main application window. When moving to the web world, it’s a bit jarring [...]

Read the full article → April 9, 2009

Tracking outbound links with jQuery and Analytics

Thanks to @elijahmanor for tweeting this article about updating anchor tags! While I was looking through the code, I found a magical way to use jQuery selectors to identify outbound links on a web page. That got me thinking … wouldn’t it be nice to track outbound clicks through Google Analytics like I’m tracking downloadable [...]

Read the full article → April 8, 2009

Setting focus on first form element with jQuery

When you display a form, it’s always a nice practice to ensure that the first element of the form has focus as soon as the user can interact with the page. For example, if you went to Google’s homepage and had to click in the search box before you could start typing your question, it [...]

Read the full article → April 7, 2009

Publishing to Facebook using Facebook Connect

In order to get a frame of reference for this post, you’ll need to read Integrating Facebook Connect using the Thesis theme. That article briefly describes the method for creating a new Facebook Connect application and the files required to set up the basic framework for a Facebook Connect integrated site.
Assuming your site is ready [...]

Read the full article → April 1, 2009

Geeking out

I’ve enjoyed geeking out the past few days, but the example I wanted to show today is taking longer than I had expected, so I have to delay that one. I’m going to do more mini-tutorials and examples over the next few weeks, so stay tuned.
If you’re new to this site, please take a look [...]

Read the full article → March 26, 2009

Javascript geolocation using Google AJAX APIs

I always love poking around code.google.com to see what’s new — there’s always more than I can assimilate, but it’s fun nevertheless. Today I found that Google has provided Javascript-based geolocation via the Google AJAX APIs. If you’re not familiar with these APIs, you should read getting started with the Google AJAX APIs.
Originally, the AJAX [...]

Read the full article → March 25, 2009