Thanks for the info Mark.
I have 2 possible other solutions you can use that don´t require going the REST api etc. way. They are also much cheaper (one off cost and cheap).
1 (easiest):
Use HelpSmith (http://www.helpsmith.com or any other KB tool that can create a direct link to a particular KB article) to create your KB (Helpsmith is a great and cheap KB tool that works greatly for this solution). Then from your query for example use the following code in the advanced (init) script:
config.tools.push ({ type: "help",tooltip: "Open knowledgebase and<br> read more about this feature", handler:function () { window.open('http://XXX.XXX.XXX:8080/AwareIM/KB/index.htm?id=Help_Topicssub', '_blank'); }});
PS: You can also play around with the window.open (Javascript) in the code above to get the article to open up in other places like in a new window etc..
2:
Use Highslide (http://highslide.com/) to create js popups that you link to a button so when the user press the button, an KB article is displayed in a modal iframe. I haven´t set up this solution myself but I know Pete is using it in his apps so ask him for advice or a guide (and please share the solution in the tips section if you do (or Pete if inclined)).