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

Having trouble launching a captivate file in its own window

New Here ,
Mar 02, 2011 Mar 02, 2011

Copy link to clipboard

Copied

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

Views

1.8K

Translate

Translate

Report

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
LEGEND ,
Mar 02, 2011 Mar 02, 2011

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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
New Here ,
Mar 02, 2011 Mar 02, 2011

Copy link to clipboard

Copied

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~

Votes

Translate

Translate

Report

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
LEGEND ,
Mar 02, 2011 Mar 02, 2011

Copy link to clipboard

Copied

Hello again

Okay, I'm a bit confused by your copying the Simulations folder into the WebHelp folder. RoboHelp normally does that for you as long as the folder is part of the project.

What happens if you remove the self.close part of the JavaScript? Seems odd to me that you are first closing, then attempting to re-open a window?

Also, are you not able to click off the popup window to see it close? Normally clicking elsewhere will cause it to dismiss.

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

Votes

Translate

Translate

Report

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
New Here ,
Mar 02, 2011 Mar 02, 2011

Copy link to clipboard

Copied

Hi Rick,

Answers below.

 

(Q1)

Okay, I'm a bit confused by your copying the Simulations folder into the WebHelp folder. RoboHelp normally does that for you as long as the folder is part of the project.

(Q1 Answer)

I am doing what we did in the past. A coworker thinks it weird too, but I am not sure how to do it so RH does it work. When I added the sims folder in the project, when I published it did not move my files over so I manually moved them. I also got an error about a path. Got worried the published file would be looking for my c:/ drive or something. If you can tell me the proper way to add my captivate file I would LOVE to try it.

 (Q2)

What happens if you remove the self.close part of the JavaScript? Seems odd to me that you are first closing, then attempting to re-open a window?

(Q2 ANSWER)

I actually did another test without it but did not mention every test and nothing opened. (again following past stuff procedures) code was javascript:/window.open('Simulations/Create_New_Cust.htm','mywindow','width=400,height=200','scrollbars=no')

(Q3)

Also, are you not able to click off the popup window to see it close? Normally clicking elsewhere will cause it to dismiss.

(Q3 ANSWER)

Yes it does close if I click off it however it looks real awful with no browser bar on top and my last slide tells them congrats you are done blah blah blah, and instructs them to click close. It si not preferable this way.

So anything you can offer as suggestions is so completely appreciated.

 

Thanks,

Deanne

************************************************************

This communication, including attachments, is for the exclusive use of addressee and may contain proprietary, confidential and/or privileged information. If you are not the intended recipient, any use, copying, disclosure, dissemination or distribution is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return e-mail, delete this communication and destroy all copies.

Votes

Translate

Translate

Report

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
LEGEND ,
Mar 03, 2011 Mar 03, 2011

Copy link to clipboard

Copied

Hi,

I hope Rick doesn't mind me party crashing.

1. When you add a Captivate demo in RoboHelp, add all the output files as baggage files to your project. You need to include the html, the javascript and the swf files. RoboHelp will then take all these files to your output.

2. I use a function in an external JavaScript to create a popup with the demo. In the the hyperlink:

     javascript:PopUp('myurl.htm', 100, 100);

     The function in the script:

     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+',width='+sWidth+',height='+sHeight+'')   
    DemoScherm.focus()
}

3. You can let Captivate execute JavaScript. Can you let Captivate close the window for you?

Greet,

Willam

Votes

Translate

Translate

Report

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
New Here ,
Mar 03, 2011 Mar 03, 2011

Copy link to clipboard

Copied

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~

Votes

Translate

Translate

Report

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
New Here ,
Mar 03, 2011 Mar 03, 2011

Copy link to clipboard

Copied

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~

Votes

Translate

Translate

Report

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
LEGEND ,
Mar 04, 2011 Mar 04, 2011

Copy link to clipboard

Copied

Hi,

Try removing location='Create_New_Cust.htm'; from the link, so it looks like this:

javascript:window.open('Simulations/Cre  ate_New_Cust.htm','Create','HEIGHT=683,WIDTH=970,scrollbars=no'

That should solve your problem.

As for the function I provided:

  - To create a JavaScript file, simply open notepad, past the function and save it with the extention .js.

  - To call the function, do not include the asterisks. Thats just the forum code for bold text you see in e-mails.

  - You do not need to change anything in the function. You can enable or disable different browser parts (address bar, etc) by setting the variables to yes or no. DemoScherm is the name of the new window that is created. The function uses this name to first create the window and then focus it (put it on top). It's dutch for demo screen.

About the tracking code, I guess it's some javascript for tracking page visits, is it not? If so, you probably want to add it to the page and not launch it when an URL is clicked. Can you be more precise about what you want to do and what code you need to use?

Greet,

Willam

Votes

Translate

Translate

Report

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
New Here ,
Mar 08, 2011 Mar 08, 2011

Copy link to clipboard

Copied

Thanks Willima, but I tied this too last week. Instead of a blank page in the bg I get a page that says [object] like in the graphic.

ss.png

This should not be so hard. i am completely frustrated and i am running out of time.

I appreciate people like you and Rick who try to help everyone out. If you can think of anything else to try I would be excited.

Thanks,

Deanne

Votes

Translate

Translate

Report

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
New Here ,
Mar 08, 2011 Mar 08, 2011

Copy link to clipboard

Copied

I am testing out the function part of your solution above. I had a question.

When I save the jvascript, should it be called a specific name?

Once I straigten this out and just get it to open correct, we can try adding the tracking code.

Also, how can you add a baggage file when there is more than one (.swf, .htm & .js)? I have 22 of these.

THANKS,

D~

Votes

Translate

Translate

Report

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
LEGEND ,
Mar 08, 2011 Mar 08, 2011

Copy link to clipboard

Copied

Hi,

- It doesn't matter in which JavaScript file you save the function. As long as you link the file in the topic.

- Just go to the project manager pod and add all the files in the directories you like.

You can also send me an example project at contact [at] wvanweelden [dot] eu.

Votes

Translate

Translate

Report

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
New Here ,
Mar 08, 2011 Mar 08, 2011

Copy link to clipboard

Copied

Hi William,

I still am not sure how to follow your instructions.  SOmeone has come up with a resolution. not sure it is optimal since I have 22 links, but it works. It gets rid of the blank RH page. They told me to paste the following code for my links in the html where I wanted to add my link (Changing the stuff I bolded) :

<a href="javascript: void(0)" onclick="window.open('Simulations/Create_New_Cust.htm',
  'CreateNewCustomer',
  'width=970, height=683, resizable=0, scrollbars=0, menubar=0, status=0');
   return false"
      style="color=: #0000ff 'text-decoration:underline';">Create
New Customer
</a>

What do you think? It seems to be working.

Votes

Translate

Translate

Report

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
LEGEND ,
Mar 09, 2011 Mar 09, 2011

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

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
New Here ,
Mar 09, 2011 Mar 09, 2011

Copy link to clipboard

Copied

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~

Votes

Translate

Translate

Report

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
LEGEND ,
Mar 09, 2011 Mar 09, 2011

Copy link to clipboard

Copied

Hi,

Please make sure that you have the relative path from the topic to the javascript file.

Note: the link to the javascript file needs to be in the topic you call the popup from. It doesn't need to be in the page you are calling.

As far as I can see, the way you are setting up the link and the way you use the function is ok. If this doesn't help, please send me an example topic so I can have a look.

Greet,

Willam

Votes

Translate

Translate

Report

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
New Here ,
Mar 09, 2011 Mar 09, 2011

Copy link to clipboard

Copied

LATEST

When you say send a sample topic, what do you mean. The topic html page? I am sorry if I seem thick, it is just that RoboHelp is not an application I use often.

Should I zip up a small sample project and send it to you?

Thanks, Deanne

Deanne Kelly | eLearning Specialist, Learning Solutions

860-547-7905 deanne.kelly@thehartford.com

Votes

Translate

Translate

Report

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 ,
Mar 02, 2011 Mar 02, 2011

Copy link to clipboard

Copied

I'm still not really seeing it - are you doing all this copying of file inside RH or in Explorer? Are your hyperlinks in the output files or are you inserting through the RH topic? Maybe some screenshots of what you're doing and what you're getting would be helpful. Use the camera icon in the web interface to insert images.

Votes

Translate

Translate

Report

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