Skip to main content
Known Participant
March 2, 2011
Question

Having trouble launching a captivate file in its own window

  • March 2, 2011
  • 1 reply
  • 2001 views

Hi,

I am using RoboHelp HTML, version 8.

I am trying to launch a adove Captivate 5 published file in a pop-up window. The wiindow needs to be a specific size and have no scrollbars or broswer junk. It is not working for me. Can anyone help me code it?

Thanks

This topic has been closed for replies.

1 reply

Captiv8r
Legend
March 2, 2011

Hi there

Happy to try and help but "not working" is a wee bit vague. For example, my car is "not working" might mean the following:

I tried turning the key but nothing happened.

I cranked it over but it never started.

I started it up, but it won't move when I put it into gear.

I started it up and it went into gear, but the tire was flat.

Same goes for mixing Captivate and RoboHelp.

Please tell us more.

Does the Captivate play when you inserted it into a topic?

Do you even see anything when it's in a popup?

Does it appear in the popup, but refuse to do its thing?

Just give us a blow by blow of what you are seeing. Or better yet, use Jing and record the process and actually show us what is happening!

Click here to visit the Jing site

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

Deanne KAuthor
Known Participant
March 2, 2011

Sorry Rick, below  are some details.

  • First, I created a folder called Simulations inside my project and copied a few captivate files into it. (there are about 17 in total i will need to link).
  • Next I copied that SImulations folder into the WebHelp folder.
  • Then I did a series of tests as follows:
    1. Inserted a hyperlink. path was Simulations/Create_New_Cust.htm
      Launched fine, but I want to control window size and remove all browser junk (toolbars, scrolls, etc.).
    2. Inserted hyperlink and used RH to open in a new windo of a specific size. Path was same as above Simulations/Create_New_Cust.htm
      Problems were, there was no browser window bar to move around the window etc, when I clicked off the captivate it would go away, and my captivate would not close using the close on the captivate nav bar like it is suppossed to. (and because there is not browser bar, there is no browser window close bar)
    3. Then I tried to use Javascript code that we have used in the past javascript:/self.close();window.open('Simulations/Create_New_Cust.htm','Select','HEIGHT=520,WIDTH=710,scrollbars=no')
      The problem was nothing opened.

So do you know of any way to get my captivate to open in a new window of a custom size with no browser junk? I am getting desperate as my project timeline is getting nearer. Can you please help?

Hopefully this gives you enough detail.

Thanks for looking.

D~

Deanne KAuthor
Known Participant
March 3, 2011

Just want to say, thanks to both of you for helping!

William, I would love to try the external function but am a little confused as how to implement it. Can you help me with that?

  • It sounds like I would create an external function file by ??????, then the hyperlink code I would add would be: 
    *javascript:PopUp('myurl.htm', 100, 100);*
    Do I include the asteriks? And the part I made italic would be cahnged to my window dimentions - right?

  • External Function code would be:

    function PopUp(sURL, sWidth, sHeight) {
    var sStatus = 'no';
    var sToolbar = 'no';
    var sLocation = 'no';
    var sMenubar = 'no';
    var sResize = 'no';
    var sScroll = 'no';
    DemoScherm = window.open(sURL,'','status='+sStatus+',toolbar='+sToolbar+',location ='+sLocation+
                             ',menubar='+sMenubar+',resizable='+sResize+',scrollbars='+sScroll+',w idth='+sWidth+',height='+sHeight+'')
    DemoScherm.focus()
    }

No changes to above - correct? What is DemoScherm?

  • Once we get that, I also need to add a piece of tracking code to the url. The code would be something like the following:

    javascript:ntptEventTag('ev=create_new_cust_sim')

    Do you think you can help me with that too?

Thanks again for your reply, looking forward to hearing back from you.

D~


OK everyone, I have gotten my file to open in its own browser by adjusting my original code. I am curently using the following code on the hyperlink:

javascript:location='Create_New_Cust.htm';window.open('Simulations/Create_New_Cust.htm','Create','HEIGHT=683,WIDTH=970,scrollbars=no')

This looks beautiful except for one BIG problem. The robohelp page I am launching my Captivate 5 file from turns blank. If we can solve this I will be all set and completely estatic!

Thanks for looking,

D~