recent posts

categories

archives

stuff from May, 2011

That was a neat use of JavaScript

I’ve been intrigued by JavaScript templating lately, enough so that I did a little bit of playing with a few options (mustache and I Can Haz JS). I made this page from I Can Haz JS, and it was very easy to implement.

In a nutshell, here’s how it went:

  1. Link to all the right JS files
  2. Create a <script> block with the template for my data
  3. Use Google Feed API to snag an RSS feed
  4. jQuery voo-doo to make these JavaScripts render something on the screen
  5. Muck with the look/feel to make it entertaining

I don’t believe I have hardly scratched the surface with what is possible. It seems to me these templates would be very useful in pages with lots of Ajax calls to the server sending/receiving/updating data. Of course I have no projects going right now that need any of that action, so I put together a super-simple quick-hitting test page. Go look at the page and view the source, and have fun at the rest of the playground, too.

The hardest part was thinking of some (almost useful) data source to use and then remembering that I couldn’t violate any security measures (ahem, must implement Google Feed API to pull an RSS feed.) I’m potentially biased, but I dig the color scheme and design I’ve put together here. Additionally, I was stoked to see all the new fonts the Google Font API has now! It had been a while since I checked them out, been sticking with Font Squirrel.

Anyone want to help me think of a project where we can use this templating? I don’t have a lot of free time, but would love to build something. Ping me here, or on the Twitters!



i am gabe

Gabe Harris, that's me

I love web development and I specialize in front-end development. If you think that means "just HTML" you can go play some place else on the internet, that's fine. While I'm neither an artsy designer nor an über-technical programmer, I am comfortable in both worlds. I work at the intersection of design and server-side programming with proficiency in HTML/CSS, JavaScript/Ajax (thumbs up for jQuery), ASP.NET, php (including Wordpress and CodeIgniter), Photoshop, and Illustrator.

I follow modern web design trends and techniques, but I'm not overly concerned with being bleeding edge. I browse the web with Google Chrome, I use Firefox for some of its development features sometimes, and I cringe at the thought of Internet Explorer (can you guess which browser renders this site best?)

When I'm not geeking out on the interwebs, I love playing with my kids and going fishing. Feel free to learn more about my experience, or see my work, or Facebook me, or follow me. Glad you stopped by!

reach out






©2012 gabe harris
Do NOT follow this link or you will be banned from the site!