Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.
I am the chief technical officer at InVision App, Inc - a prototyping and collaboration platform for designers, built by designers. I also rock out in JavaScript and ColdFusion 24x7.
Meanwhile on Twitter
Loading latest tweet...
Ben Nadel at the jQuery Conference 2009 (Cambridge, MA) with:

Helping Google-Users Find Answers

By Ben Nadel on

I am going to be helping Google users find answers on my site. I am working on a page-highlighting DHTML system where certain text nodes can be highlighted (wrapped in span elements) depending on if the user's referring url comes from google with search query params.

The tricky thing here is not using innerHTML. I don't like innerHTML. It makes me feel uncomfortable the same way that Evaluate() in ColdFusion makes me feel uncomfortable. Plus, I don't think it's a supported standard (even though many browsers allow for it). So, instead of that, I have to break text nodes into sepparate nodes and wrap parts of them in span DOM elements.

I have the text search and the tag insertion working on a test case which means pretty soon, you will be seeing some new methods in the DHTML snippets library and some highlighting on your page if you come from Google.

Tweet This Great article by @BenNadel - Helping Google-Users Find Answers Thanks my man — you rock the party that rocks the body!


Reader Comments