Plone Search term highlighting - unresponsive script - Firefox
Q. Users searching on a term in Google when using Firefox, 1.5, 2.0 and clicking on link for a Plone site - see an unresponsive script message. Does not occur in Internet Explorer. This is a major annoyance for Firefox users and also occurs for me on Plone.org site for many but not all terms when performing a site: search.
A. I was experiencing this and tracked it down to Search term highlighting which is a known problem but not fixed in Plone 2.5.1 which I am using.
I couldn't find a method to simply turn off Search Term Highlighting, so instead, I customisedÂ
/plone_ecmascript/highlightsearchterms.js
and for simplicity, inserted return false; at top of functions
| function highlightSearchTerms(terms, startnode) |
and
function highlightSearchTermsFromURI()
This is the official fix.
Please bookmark this article if you found it useful (just two clicks).
Please add your comments, experiences or link suggestions to inform me and other visitors to my site.
I've set it up to be quick, but you can't add true hyperlinks - just text.
Thanks, Dave Chaffey.
