Skip to main content
Participant
March 28, 2012
Question

improving FlashHelp search results

  • March 28, 2012
  • 1 reply
  • 924 views

Hi,

I came across an article on this site

http://www.helpscribe.com/2008/10/improving-webhelp-search-results-in.html

that replaces the function called displayTopics in whfhost.js

with the following code :

function displayTopics() {  var recHTML=""; var sHTML=""; var sLine="";   var foundRecTopics = 0; var foundAnyTopics = 0;  var rg = new RegExp(gsCW,"ig");  var recHead="<dt><nobr><b>Recommended topics</b></nobr></dt>"; var allHead="<br><dt><nobr><b>Other topics</b></nobr></dt>";   for(var i=0;i<gaTI.length;i++){ if(gaTI.sTopicTitle.search(rg)>-1){ recHTML+="<dt><nobr><a href='"+gaTI.sTopicURL+"'>"+_textToHtml(gaTI.sTopicTitle)+"</a></nobr></dt>"; foundRecTopics = 1; } else{ foundAnyTopics=1; sLine+="<dt><nobr><a href='"+gaTI.sTopicURL+"'>"+_textToHtml(gaTI.sTopicTitle)+"</a></nobr></dt>"; if(i>>4<<4==i){  sHTML+=sLine; sLine=""; } } } if(sLine.length>0) sHTML+=sLine;   if (!foundRecTopics) { recHTML+="<dt><nobr>No topics found.</nobr></dt>"; }  if(!foundAnyTopics) sHTML+="<dt><nobr>No topics found.</nobr></dt>";  sHTML="<dl>"+recHead+recHTML+allHead+sHTML+"</dl>";  var resultDiv=getElement(gsResultDivID); if(resultDiv) resultDiv.innerHTML=sHTML; } 

Will this work for FlashHelp?

Thanks for any advice.

M

This topic has been closed for replies.

1 reply

Captiv8r
Legend
March 28, 2012

Welcome to our community, M

My own guess is that the code tweak will not apply to FlashHelp. And the reason is why I (and many others) tend to avoid FlashHelp. Sure, the output is glitzy with animation.

I stand to be corrected on this, but my understanding is that the same reason it's glitzy is also it's weak spot. Much of the code is hidden in Flash elements that use ActionScript programming.

Cheers... Rick

Helpful and Handy Links

RoboHelp Wish Form/Bug Reporting Form

Begin learning RoboHelp HTML 7, 8 or 9 within the day!

Adobe Certified RoboHelp HTML Training

SorcerStone Blog

RoboHelp eBooks

MPiazza71Author
Participant
March 28, 2012

Thanks, Rick.