Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Search not working in AIRHelp from AIR HTML container

Guest
Feb 01, 2011 Feb 01, 2011

Hi,

I'm working on an Adobe AIR application, and investigating integration AIRHelp into our app.  I found that deploying two separate air apps to be cumbersome to the user, so I'm looking at using AIRHelp in browser based mode, and then opening the url using the mx.controls.HTML control.  The browser based AIR Help launches ok, however, the print button and the search input doesn't work correctly.  Has anyone had this issue?  (However, when I run it from Chrome or IE, it's fine.)

help_image.png

RED areas don't work.

My Flex code:

var helpUrl:String = "http://myserver/BrowserBasedHelp/xxx.htm";

var window:Window = new Window();

var html:HTML = new HTML();

html.location = helpUrl;

html.percentHeight = 100;

html.percentWidth = 100;

window.addChild(html);

window.title = "Client help";

window.width = 800;

window.height = 600;

window.showStatusBar = false;

window.open();

Thanks in advance,

-Tom

Message was edited by: Peter Grainge "based based" amended to "browser based"

1.5K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 01, 2011 Feb 01, 2011

Tom

I don't think you will get much help here on this one as it is really a developer question and most folks here are authors.

There are some links on my site to developer information on Adobe's site for AIR help but I believe the information there is for desktop AIR help rather than browser based.


See www.grainge.org for RoboHelp and Authoring tips

@petergrainge

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Feb 02, 2011 Feb 02, 2011

Hi,

Browser based help is not designed to run inside a HTML control in a AIR application. having said that, you can do the following to make the search working for your case.

I am pasting a sample code which will allow the search for browser based help to work.

private function onCreationCompleteHTML(event:Event):void
{
    var html:HTML=event.target as HTML;
    if (html != null && html.htmlLoader!=null)
    {
        var szUserAgent:String=html.htmlLoader.userAgent;
        szUserAgent=szUserAgent.replace("AdobeAIR", "");
        html.htmlLoader.userAgent=szUserAgent;
    }
}

private function launchHelpWindow():void
{
    var helpUrl:String = "http://myserver/BrowserBasedHelp/xxx.htm";
    var window:Window=new Window();
    var html:HTML=new HTML();
    html.addEventListener(FlexEvent.CREATION_COMPLETE, onCreationCompleteHTML);
    html.location=helpUrl;
    html.percentHeight=100;
    html.percentWidth=100;
    window.addChild(html);
    window.title="Client help";
    window.width=800;
    window.height=600;
    window.showStatusBar=false;
    window.open();
}

This will solve the search issue you are facing, but print issue will still remain there.

You can use the RoboHelp 9 skin editor, to make a print button icon similar to the background color and make it invisible. For that you need RoboHelp 9.

Thanks

Praful

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Feb 02, 2011 Feb 02, 2011

Pratful_Jain,

I tried it out and it looks like the search works!  Yeah, it doesn't seem like something that has been tested by Adobe, but it seems like it would be validate use case of AIR browser based help.  Why wouldn't someone want to use AIR Help from an AIR app?  As for the print button, I'm sure we can skin that out somehow.

Thanks,

-Tom

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Feb 02, 2011 Feb 02, 2011
LATEST

As the AIR app has to be installed, it would seem more likely that desktop AIR help would be used, rather than browser based AIR help.


See www.grainge.org for RoboHelp and Authoring tips

@petergrainge

Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
RoboHelp Documentation
Download Adobe RoboHelp