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 Ellen's Stardust Diner (New York City) with: Colin Silverberg and Carol Loffelmann

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 Groovy post by @BenNadel - Helping Google-Users Find Answers Thanks my man — you rock the party that rocks the body!


Reader Comments

Post A Comment

You — Get Out Of My Dreams, Get Into My Comments
Live in the Now
Oops!
Comment Etiquette: Please do not post spam. Please keep the comments on-topic. Please do not post unrelated questions or large chunks of code. And, above all, please be nice to each other - we're trying to have a good conversation here.