Hi,
Please try the solution given below and see if it works fine for you or not. Generate Browser Based AIR Help output.
Now open the generated output folder and open whfhost.js file in the notepad application. Search for the following strings in the file. you need to replace this function
function Query() { gbAIRSearchString = goOdinHunter.strQuery; g_CurPage = 1; context = new HuginContext(); context.reset(); context.push( goOdinHunter.query, goOdinHunter, processHunterResult, null ); context.resume(); } |
With this new function
function isValidType(obj) { return ( (typeof(obj)!='undefined')&&(obj!=null) ); }
function Query() { gbAIRSearchString = goOdinHunter.strQuery; g_CurPage = 1; if (isValidType(context) && isValidType(context.aTasks)) { while(context.aTasks.length>0) { context.resume(); } } context = new HuginContext(); context.reset(); context.push( goOdinHunter.query, goOdinHunter, processHunterResult, null ); context.resume(); } |
And try running the output and see if you stilll face the null search result problem
If this problem is fixed, then you can go to the C:\Program Files\Adobe\Adobe RoboHelp 8\RoboHTML\WebHelp5Ext\template_stock folder location, and make the similar changes in the whfhost.js file located in this folder.
Do let me know if this fixes the problem or not.
Note: this should work fine for RH8 and RH9 both.
thanks
Praful
Adobe RoboHelp Team.