Skip navigation
Currently Being Moderated

Iframing a robohelp project

Jan 16, 2014 1:44 AM

Tags: #iframes #print_button

Has anyone iframed a robohelp project? We have a client who needed to put their robohelp project/files behind a login, and share the main website's header and footer.

 

So we ended up iframing (the already iframed) robohelp project. The print button in the robohelp toolbar isn't working, probably because we're iframing an iframed project. Has anyone had a good workaround for that?

 
Replies
  • Currently Being Moderated
    Jan 16, 2014 1:48 AM   in reply to egockel

    You can put the help in an iframe, but I found that the TOC doesn't load

    correctly on IE when the help is placed in an iframe. I've worked around

    this by commenting a check in the function ExpandIt in whthost.js:

     

    function ExpandIt(nId)

    {

         //if(!gsTP)/* Workaround for not loading in IE11 in iFrame. */

             ExpandIt2(nId,false);

    }

     

    As for the print button, you may need to amend the code of the print

    button in the skin editor so that the button points to the correct

    frame. top..restofpath or something like it.

     

    Kind regards,

     

    Willam

     
    |
    Mark as:
  • Currently Being Moderated
    Jan 25, 2014 7:55 AM   in reply to egockel

    There is a workaround. You will have to update the seed file. The seed

    files are the templates that RoboHelp uses to generate the output.

     

    You find the seed file for whthost.js in %RH installation

    directory%\RoboHTML\WebHelp5Ext\template_stock

     

    Make a backup of the original file before you change the seed file!

     

    Kind regards,

     

    Willam

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 3, 2014 6:28 AM   in reply to egockel

    Sorry about that. It's a little trickier: you must amend the code in

    whst_frames.xml for this to work. You can search for the code there and

    make the amens. But be carefull: this is a template file and you need to

    escape all slashes and single/double quotes.

     

    Kind regards,

     

    Willam

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 5, 2014 12:23 AM   in reply to egockel

    I hope we're talking about the same file. You can find the scripts and

    most files in the folder template_skin and template_stock. Only for the

    whskin_frmsetxx.htm files you need to amend the xml.

     

    Kind regards,

     

    Willam

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 7, 2014 3:21 PM   in reply to egockel

    Hi there

     

    Just a couple of things.

     

    First, (and this is mostly for anyone finding this thread down the road) I'd like to clarify something. An HTML page may have an Inline Frame inside it. That is referred to as an IFRAME. While RoboHelp produces an output type known as WebHelp, this output is presented using a FRAMESET. A FRAMESET is totally different from an IFRAME. In an IFRAME, the content from a different web page is presented inside a single frame. But a FRAMESET is typically used to divide a HTML page into two or more areas, with each area presenting a different HTML page.

     

    As for the function and the changes you are referring to, Willam advised you to make a tweak to the seed file. That tweak was simply to allow the TOC and other elements to display properly. There was a second bit. The second bit involves the Print function.

     

    Note that the print function is not part of the seed file. It's part of the skin. So it's no surprise whatsoever you aren't finding it in the seed file. It simply isn't there to be found.

     

    You need to be looking at the code inside the skin editor.

     

    Cheers... Rick

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 7, 2014 3:25 PM   in reply to Captiv8r

    Oh, and what you are trying to do is something outside the scope of what RoboHelp is configured to do. So it's doubtful that there is anyone at Adobe to actually escalate anything to.

     

    Perhaps it will help to think of it this way. You purchase a vehicle from General Motors. Instead of driving it on normal roadways as the factory supplied it, you wish to drive it on railroad tracks. The vehicle needs to be modified in order to allow it to be driven on railroad tracks. You will need to find a third party shop to make the modifications as the dealership is only really set up to make repairs to the car as it came from the factory.

     

    Cheers... Rick

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 7, 2014 4:15 PM   in reply to egockel

    Okay, I recorded a little video that may be useful, See if helps you.

     

    http://screencast.com/t/VFg7kxNB

     

    Cheers... Rick

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 11, 2014 7:06 AM   in reply to egockel

    There's no documentation as RH was not designed for being iframed. It's

    a lot of trial and error. Branding WebHelp beyond the Skin Editor

    requires quite a bit of custom coding. Especially when you want

    interaction with the parent.

     

    Kind regards,

     

    Willam

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points