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

Creating Popup windows from button

Community Beginner ,
Jul 01, 2009 Jul 01, 2009

I am trying to have a button in captivate open a popup window to display a captivate demo. All of the Javascripts I have tried to use do nothing.

Does someone have a script that works, or a work around? I can get it to launch another HTML page but then it wants to open two windows instead of just the one with the demo.

Thanks,

Judy

TOPICS
Advanced
4.2K
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 ,
Jul 01, 2009 Jul 01, 2009

Hi,

I just tried this on the Execute Javascript window and it worked

window.location.href = "http://www.google.com";

--

Manoj

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 Beginner ,
Jul 01, 2009 Jul 01, 2009

Thank you,

I am having the same issue as I tried before. I get two windows opening, one the size that is stated, and a regular browser window.

Here is my Java and HTML

Button Java

I want to open this htm, and then have the HTML document open the demo movie.

window.location.href = "http://tctsb.con-way.com/remote_publishers/help_training/MobileSCO/CBT/DemoTest/LogIn_demo.htm";

HTML

<SCRIPT LANGUAGE="JavaScript">
function popWindow(LogIn_demo_skin.swf) {
window.open(LogIn_demo.swf,'MyWindow','toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,wi dth=500,height=400');
}
</script>

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
LEGEND ,
Jul 01, 2009 Jul 01, 2009

Hi there

The Captivate that's attempting to open the window, is it being presented via EXE output or as a SWF/HTM?

Cheers... Rick

Helpful and Handy Links

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 Beginner ,
Jul 01, 2009 Jul 01, 2009

Hi,

It is being presented as a swf/htm.

Judy

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
LEGEND ,
Jul 01, 2009 Jul 01, 2009

Hi there

I personally find the most reliable method for using JavaScript is to take the following approach:

Edit the standard.js file Captivate creates and add my JavaScript functions into that file, then call them with a Button, Click Box or other object.

Have you tested this from a web server? I ask because often we find that Flash Security will block JavaScript calls when you test locally. But they work just fine when you test from a web server.

Cheers... Rick

Helpful and Handy Links

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 Beginner ,
Jul 01, 2009 Jul 01, 2009

I have tested from a server, and also changed the Flash security settings.

I will try using the standard js file. Would I add the code that I have in there? Is what I have correct?

Judy

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
LEGEND ,
Jul 01, 2009 Jul 01, 2009

Hi there

Does the code work for a regular HTML page? That's the true test of any JavaScript code. Test it in a basic HTML page and ensure it works fine there befoe introducing it into Captivate. If you do that, at least you are assured the code is working (or should be) and there is an issue with making it work in Captivate.

Cheers... Rick

Helpful and Handy Links

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 Beginner ,
Jul 01, 2009 Jul 01, 2009

I am going to attach the HTML file that is working and the captivate file. This file just has one button so that I can see if it will work.

When I open the HTML it opens two windows. A regular browser then the window with the small window with the demo.

From Captivate, I want it to open just the one small window which contains a small captivate demo.

Message was edited by: Judy_A I will attach the cp file separately.

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 Beginner ,
Jul 01, 2009 Jul 01, 2009

I am testing the button actions with this file.

Thanks for looking into this, I have been working on this all week.

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 Beginner ,
Jul 02, 2009 Jul 02, 2009

I created a basic Html file in which I could get the small popup window to appear.

The problem is when I call up the htm from the captivate button, it opens the main browser, then the demo which is in a 350X450 window.

I just want the capivate demo window to open, not a browser window behind it.

Can anyone help, I am going crazy trying to do this.

Thanks,

Judy

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
LEGEND ,
Jul 02, 2009 Jul 02, 2009

Hi there

Perhaps if you could post the files, we could test first hand and tell you if it's possible and what to do about it.

I know you attempted to post files earlier in the thread. The problem with that is that you only posted output files. That's sort of like baking a cake and reporting it tastes icky. We need to see the actual ingredients used. That means the .CP file. So you might zip it up and attach that.

If you have concerns about confidentiality, create a short one or two slide Captivate and use that instead.

Cheers... Rick

Helpful and Handy Links

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 Beginner ,
Jul 02, 2009 Jul 02, 2009

Thanks,

Here are the files. I created a simple button file with different actions trying to open the window.

I added the cp file for the demo and the buttons.

Let me know if you need anything else.

Thanks again.

Judy

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 Beginner ,
Jul 06, 2009 Jul 06, 2009

Have you had any luck with the code files I sent last week?

Judy Long

Instructional Designer

Con-way Enterprise Services

Never Settle for Less.

2055 NW Savier

Portland, OR 97209

(503) 450-2724 Phone

(503) 450-5790 Fax

(503) 475-7901 Cell

long.judy@con-way.com

www.con-way.com

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
LEGEND ,
Jul 06, 2009 Jul 06, 2009

Hi Judy

Sorry, but Adobe never approved the zip you uploaded. It's still sitting in a Queued status.

One way to transfer is to use a free service such as YouSendIt.com.

Cheers... Rick

Helpful and Handy Links

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 Beginner ,
Jul 06, 2009 Jul 06, 2009

My company won't allow the site, I will have to send it to my home and then send it.

Judy

Judy Long

Instructional Designer

Con-way Enterprise Services

Never Settle for Less.

2055 NW Savier

Portland, OR 97209

(503) 450-2724 Phone

(503) 450-5790 Fax

(503) 475-7901 Cell

long.judy@con-way.com

www.con-way.com

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 Beginner ,
Jul 06, 2009 Jul 06, 2009

I am going to try and add a couple of them individually.

Judy Long

Instructional Designer

Con-way Enterprise Services

Never Settle for Less.

2055 NW Savier

Portland, OR 97209

(503) 450-2724 Phone

(503) 450-5790 Fax

(503) 475-7901 Cell

long.judy@con-way.com

www.con-way.com

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 Beginner ,
Jul 07, 2009 Jul 07, 2009
LATEST

Looks like my two files did not attach yesterday.

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
Help resources