Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.
Ben Nadel at CFUNITED 2010 (Landsdown, VA) with: Taraneh Kossari
Ben Nadel at CFUNITED 2010 (Landsdown, VA) with: Taraneh Kossari

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.


Looking For A New Job?

Ooops, there are no jobs. Post one now for only $29 and own this real estate!

100% of job board revenue is donated to Kiva. Loans that change livesFind out more »

Reader Comments