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 9, 2011

Hi,

Looks good to me.It's a long string to type in, but when it solves your problem it's no big deal.

Sorry my instructions weren't clear earlier. To use the function, do something like this:

<a href="javascript:void(0);" onclick="Popup('Simulations/Create_New_Cust.htm','970','683')" />Create New Customer</a>

This gives the same result as the link you have, but the function takes care of the menubar etc. In the topic, you reference the javascript file with the function:

<head>

<script type="text/javascript" src="main.js"></script>

</head>


Greet,

Willam


Oh William, you are so nice.

This seems like a very straightforward way to do it. I just do not know how to add a function. I wonder if that term is correct. I cannot find anything in help so i tried to just add the code myself to the html.  This is what i did:

I created a .js file with your code called capWin.js.

Your code was:


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()
    }

I placed it inside my Simulations folder (Since I am using this method vs. baggage files).

Because I don't know how to add the function, I just pasted the following code before the </head> tag in the html source.

<script type="text/javascript" src="Simulations/capWin.js"></script>

Then on my link I added this code:

javascript:void(0);" onclick="Popup('Simulations/Create_New_Cust.htm','970','683')

Unfortunately nothing opened. I bet it is something small I misinterpreted. Also how do I add this function more streamlined? put on  master page? Am I putting my capWin.js file in the right place - I copied it into my Simulations folder in the project and inside the one in WebHelp folder.

I think we are close. This may be easier then telling the developer to add the code from the previous resolution I wrote above themselves. Seems less tedious.

I can't thank you enough for hanging in there.

D~