Creating Popup windows from button
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Hi,
I just tried this on the Execute Javascript window and it worked
window.location.href = "http://www.google.com";
--
Manoj
Copy link to clipboard
Copied
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>
Copy link to clipboard
Copied
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 |
Copy link to clipboard
Copied
Hi,
It is being presented as a swf/htm.
Judy
Copy link to clipboard
Copied
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 |
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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 |
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
I am testing the button actions with this file.
Thanks for looking into this, I have been working on this all week.
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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 |
Copy link to clipboard
Copied
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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 |
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
Looks like my two files did not attach yesterday.

