TroyGrosfield.com TroyGrosfield.com

Archive for September, 2010

Headline

Making Video Content Discoverable on the Web

Author
by Troy Grosfield
Date
September 28th, 2010
Category
Ideas
Story

Google came out with the idea of video sitemaps. It’s a way to make your video content more discoverable.  They ask you to submit the following information about your video using their webmaster tools: Title Description Play page url Thumbnail image url Raw video file location The one flaw in the process is that they … read more

Tags
Comments
No Comments »
Headline

Encapsulation, Namespacing, and Object Oriented Javascript

Author
by Troy Grosfield
Date
September 15th, 2010
Category
Developer
Story

Global functions and/or variables in Javascript can be very bad at times especially when there are many people working on a single project. In order to prevent naming collisions it’s a good idea to namespace your Javascript functions and variables and focus on encapsulation when needed. Issue Lets say you have multiple Javascript files: common.js … read more

Tags
Comments
3 Comments »
Headline

Javascript and a Link’s Onclick Event

Author
by Troy Grosfield
Date
September 14th, 2010
Category
Developer
Story

I was given the task of making a link appear selected once it was clicked. This needed to be done with Javascript so I thought I would share this easy snippet. Demo Zoom (click link to see in action): Past 7 days Past 30 days Past 3 months Past 6 months Past year You clicked: … read more

Tags
Comments
No Comments »