Click-box behavior and calling javascript
Greetings,
While working on a project I have noticed odd behavior
concerning click-box behavior where there are more than one
click-box on a slide.
Here is the situation:
I have a Captivate (2) lesson project. In several slides I
have an area on the slide where the user can access material
outside the lesson. They do this via clicking a click-box. The
click-box is set to fire a javascript that opens the additional
content (an outside url) in window that "floats" above the
currently viewed slide.
The javascript is a standard open browser window script with
passed parameters.
Here is the script being called (it is located in
standard.js):
function openBrWindow(theURL,winName,features)
window.open(theURL,winName,features);
This script is being called in Captivate in:
Insert -> Click-box -> If the user clicks inside the
box, On Success -> Execute Javascript
An example of a typical call:
Click box -> JavaScript: -> In the window/field is:
javascript:openBrWindow('
http://www.mydomain.com/about/org-pol/f-07/f-07-016.html','mypolicy','width=800,height=600 ,scrollbars=yes');
This works fine. A window with this URL opens up over the
stopped slide.
The odd behavior comes in where I have more than one of these
click-boxes on a slide. If the user clicks a second click box, the
correct (different) URL opens up in a window OK, but the slide (now
behind the new, open window) advances. It shouldn't advance to the
next slide. It should stay put until a user clicks a particular
button to advance.
Has anyone seen this type of behavior before? Is this a bug
in Captivate 2? Or a bad javascript call? Any thoughts?
Thank you for your input.
TPK
Hi TPK
When you edit the properties of the Click Box, note that
there are two buttons to the right of the "JavaScript" field. One
is an ellipsis ( ... ) and you probably clicked that one to enter
the script. The other is a down arrow. You need to click the down
arrow and DE-select the option labeled "Continue playing project".
You will need to do this for each Click Box the user may interact
with where you don't want the slide to continue if the user clicks.
Cheers... Rick
Similar Messages
-
Definng and calling javascript on apex 4.2 (New on Apex)
Hi.
can anyone tell me where do i create a javascript on apex 4.2 ? so i can call it from various pages.
thanksI suggest create a javascript (.js) file with all your functions and upload it through the shared components > static files and refer the javascript in javascript URL reference in page attributes. The code will be something like <script language="javascript" src="#APP_IMAGES#javascript file" /> or #WORKSPACE_IMAGES#.
-
Embedding and calling JavaScript from the CS SDK
Hi, the article about the communicating between JavaScript and the CS SDK is exactly what i was looking for!
http://cookbooks.adobe.com/post_Communicating_between_JavaScript_and_the_CS_SDK_us-17383.h tml
Unfortunately I have a problem with the example code. Everytime i try to run the script an error message pops up:
"Error #1014: Class flash.external::HostObject could not be found."
Does anyone have a solution for this problem or any idea why this error appears?
I didnt change the script, i included the apedelta.swc and the link type of the apedelta.swc is external. (I checked it like a hundred times. :-))
Thanks in advance!
JoergUnless I am wrong, you cannot debug in Flex once you loaded csaw libraries. I mean, Flex will catch most mxml/as errors but it won't be able to deal with the part interacting with cs apps. At this level, only ExtensionBuilder can.
To be clear and given the fact you correctly imported the right classes and all needed stuff, this won't work in FB:
trace (app.activeDocument.name) or whatever cs dom command.
Hope it helps,
For what it worth, I created a jsinterface call to alert() so I use it as a trace replacement tool. Once again ExtensionBuilder is far more usefool in this workflow.
Loic -
What is Current, New, Parent and Top in Click Box for Open URL or File?
Hi,
I would like to know what is the definition for Current, New, Parent and Top options in the click box parameter if I want to open a file?
Regards,
JacHi there
The only way I can fathom that happening would be if you had a hidden slide with a Click Box on it that was already configured. Then you would copy the Click Box object and paste it where you want it.
Other than that, sorry but the answer is that you can't.
You might wish to suggest this as an option that Captivate would offer. You would do this by filling out the Wish Form. (Link is in my sig line)
Cheers... Rick
Helpful and Handy Links
Captivate Wish Form/Bug Reporting Form
Adobe Certified Captivate Training
SorcerStone Blog
Captivate eBooks -
Created a short tutorial using three buttons (click
boxes) Next, (jump to next slide) Back (Jump to previous slide) and
Show me (continue). Moveing forward in the tutorial they all work
fine. Next and Back always work in either direction. The problem is
when the user clicks the "Back" button and then uses the "show me"
button. Nothing happens.
I'm sure that I'm not the first one to have this problem. Any
ideas of what I'm doing wrong?
The buttons are images with click boxes on them.
I dont' have the "playback control" displayed during the
movie.
Thanks, WendeHi Wende, and welcome to the Captivate User Community!
In general, Captivate's interactive elements such as
click-boxes, buttons, and text-entry boxes, are designed to be
linear (forward). Still, I really don't see why you should be
having this problem.
In fact, if those buttons are the only interactivity on the
slides, when you click the "Back" button, your movie should go to
the preceding slide ... but then it should
immediately begin to play from the beginning of that slide
until it hits the point on the timeline where the click-box(es)
once again stop it ... and at that point, the "continue" action
should once again work to move forward.
Double check the attributes of the click-boxes (let's don't
call them buttons, since Captivate has its own "buttons" which are
similar to but not the same as click-boxes). Be sure that the
click-box configuration on the "previous" (or "Back") slide is not
conflicting with another click-box on the same slide.
Let us know what you find. If necessary, I can take a look at
the source in your CP (project) file, and advise you better after
looking at the real thing. You might find out if there is any
company policy or rule that would prevent that - if it is necessary
or desirable. -
Click Box not working in Captivate 5
Why do simple things sometimes seem hard?? I have a click box created and set to "jump to slide x" when clicked. This is on a presentation imported from PP 2010 and using Captivate 5. When clicked in preview mode, the slide simply goes to the next screen rather than jumping to the one I want. I notice there is already a click box created automatically on every screen of the imported presentation. When I remove it, the presentation automatically goes to the next screen rather than waiting for the user to click to advance. I want it to advance by the user clicking the forward arrow in the player controls. If I leave it on screen, it seems to override my added click box. Here is what my click box settings are:
Here is what the click box looks like on the screen. You can see that I resized (moved out of the way) the large click box automatically created by Captivate:
This is using XP for a course that will be published in SCORM. As always, many thanks for helping!
LisaAh ha! Yes, I do have a quiz. 17 scored questions scattered throughout the course. Do I need to move the "jump to" slide before the last question then (or somewhere else as long as it's before the last question)?
Thanks!
Lisa -
I am using the keyboard function keys to navigate a simulation using Click Boxes. For instance, F7 advances the simulation to the next screen, but if the learner selects F5, a failure caption displays. I have tried deleting and re-entering the click box, placing the click box at the top of the timeline levels, starting the click box at 0 and 0.5, making the click box visible and invisible, and make the click box the entire size of the screen.
Well, I guess that's that. Thanks for replying, I do appreciate it or else I would have been trying for days, wasting all sorts of time.
Until we meet again,
James -
Single click in a double click box
Captivate 3.
I have two click boxes; one set for a single click and the
other for a double click. Both have failure captions. When I single
click in the box set for a double click, nothing happens. It
appears to be ignored. I would like the failure caption for the
double click box to display if the user clicks only once inside the
box. Is this possible?Hi jimclennon and welcome to our community
I doubt you will be able to accomplish this easily. Failure
captions normally appear when you define a click box area and click
outside the area. As you are clicking
inside a click box area, but only clicking once, Captivate
probably isn't sensing a wrong action is occurring.
This is something you may wish to submit as a feature request
for a future version. To do that,
click
here and fill out the form.
Cheers... Rick -
3 click boxes one slide - each to jump to different slide - none working !
Captivate v5.5
I am trying to set up Branching and have create one slide with 3 options. Each option has a click box and set to Jump to slide X, Y Z.
Tried everything but none of them are working. Nothing happens.
Could there be a conflict when there is more than one click box on same slide ?
NoelLilybiri,
Think I have resolved it.
I created my 3 click boxes on my branching slide and started preview from the branching slide with F8 - nothing worked.
I went back to one slide before my branching slide, started the F8 from there and when I got to the branching slide all 3 click boxes worked and jumped to their correct slides!
Not sure why starting from previous slide would fix it - but it seems to be working - at least via F8. -
Captivate 4 No Click Box Sound
I have an upgraded version to Captivate 4. I am attempting to create a simulation with click boxes. Everything is working well with the exception of the click box sound. When I play the movie, there is not a mouse click sound when I click the boxes. I have not checked the "Disable Click Sound" box.
I think I must have changed a setting somewhere because I did not have this problem with Captivate 2 or 3.
I've included snapshots of the Click Box settings and the Publish Settings Preferences.
Thanks for any help you can provide.
LHi there
Ummm, shouldn't Hulk be something different?
Cheers... Rick
Helpful and Handy Links
Captivate Wish Form/Bug Reporting Form
Adobe Certified Captivate Training
SorcerStone Blog
Captivate eBooks -
Hi everyone -
This is my first time on this forum and I'm fairly new to
Captivate, so please be gentle :)
I am creating a movie that highlights accomplishments for a
department over time. Using the "Click Box" feature, I'm creating
links from the movie to Flash, GIF, PDF files, websites, etc. that
highlight some of these accomplishments. What I would like to do is
stop the movie while the viewer explores some of these links in a
new window, but I cannot figure out how to do this. I've attempted
to do this by clicking the dropdown arrow to the right of the "Open
URL or file:" field in the "Click Box" popup window. In this menu,
I click "New," and uncheck "Continue playing movie."
Alas! This does not work for me. I publish the movie and give
it a test run. When I click on the "Click Box" links in the movie,
my URL or file opens up just fine in a new window, but when I come
back to the movie, it is finished because it was still running
while I was exploring my links.
Am I missing something in "Options" or the "Click Box" tab?
Is it possible to stop the movie while the viewer explores links?
I am using Version 1.0.1188, Build 1188 (Education Version)
of Captivate, and viewing my movie in Mozilla 5.0 on a PC with
Window XP.
Any input would be appreciated.
Thanks,
Chris :)Hi, I have a similar issue with click boxes. I have a few
slides which follow the same pattern: I have some instructional
text which spans the length of the slide with fade in and fade out
effects. I also have a click box positioned over a button image
which the user is required to click to proceed. The click box is
set to appear a few seconds into the slide, before the text starts
to fade out.
The idea is that the instructions fade in, tell the user to
click the button, then the click box appears and pauses the slide,
the user clicks the button and the slide finishes playing, fading
out the text and moving on to the next slide.
The slide does wait for the user to click the button before
proceeding to the next slide, but the slide fails to pause, and the
instructions fade out before the user clicks the button. Just to
prove that the slide has not paused, I placed an image set to
appear after the click box appears, so if the slide had paused when
the click box appeared, the image would not appear until the user
had clicked it. However, the image does appear, the instructions
fade out, the slide plays to the end and only then does it pause.
Both the click box and instructions have their duration set
to "Rest of slide", the instructions starting at 0 seconds, fading
in over one second, starting to fade out at 4 seconds, and ending
at 5 seconds. The click box is set to appear 4 seconds in, just
before the instructions start to fade out. The click box action is
set to "continue".
I managed to solve my problem (kind of) by using an invisible
button instead of a click box, but an invisible button is also
invisible in the editing environment, making it hard to spot.
So is there a bug with click boxes? Or is there something I'm
missing? Should we avoid click boxes altogether and just use
buttons for every clickable element?
Thanks,
Scott -
Captivate 7 Click box and bottons not able to open an URL on a new window
I inserted a button and a click box in CP7 to open an URL on a new window. The URL opens but in a New Tab. There is an issue that the URL cannot be opened on a NEW WINDOW, I am using IE and Chrome. Do you have any ideas about this issue and how to troubleshoot it? I tried with Safari and it works fine.
Thanks, Jorge - Adobe Captivate 7 user.Hi Jorge
It's my understanding that all you can do is to configure the link to open in a new "whatever". Whether you get the link opening in a tab or a window is left up to the browser and how the particular user has their browser configured. For example, I use Firefox and when I look at its settings here is what I see.
I'm guessing there must be a way to force a new window, because I do see new windows appear. But I think in those cases folks are doing it by using JavaScript.
Cheers... Rick -
Scenario:
I have a text area in flash. The user will copy paste any JavaScript function in the text area and click execute button. The JavaScript function pasted in the text area should be executed with in the flash itself and the return value will be shown in another text field.yes,
function testF(s:String):XML{
var js:XML = <script>
<![CDATA[
]]>
</script>
js.appendChild(XML(s));
return js;
ExternalInterface.call(testF(your_tf.text)); -
Before with firefox 3 and 4 I could call phone numbers with skype directly off of the web page by clicking the phone number. This feature no longer functions in firefox 5. What do i need to do. When I go to your website I can only download 5. I would like to back up a version if I need to because I use this skype calling numbers function daily. Please help
Firefox 4.0 is no longer available. You can download to the previous secure version which is 3.6.19 from here: [http://www.mozilla.com/en-US/firefox/all-older.html Download Firefox v3.6.19]
To ensure a clean installation, please do the following:<br><br>
#Go to "Programs and Features" in Control Panel and remove "Mozilla Firefox" choosing to keep your bookmarks, customizations etc., (''don't checkmark the box'').<br><br>
#Then reboot, open Windows Explorer, navigate to C:\Program Files and delete the folder called "Mozilla Firefox".<br><br>
#Finally run the installation file you downloaded earlier.<br>
Your bookmarks, customizations etc., are maintained in a different location and will become available to you again once you complete the installation.<br><br>
Having said that, make a backup of your bookmarks as a precaution as follows:<br><br>
#Click the orange Firefox button, go to '''Bookmarks''', then '''Show All Bookmarks''' to open the Bookmarks Manager.<br><br>
#Click the link to '''Import and Backup '''and then click '''Export HTML '''and save the file somewhere.
You can use the same Bookmarks Manager to import the file you saved by choosing "Import HTML". -
Response to mouse click by combo box list and underlying clickable label
Hello,
we developed a label responding to a mouse click by opening and thereby displaying an associated help text. The label extends a project specific hierarchy of labels and thus implements MouseListener, of course. Now we encountered a strange problem: It occurs when a combo box is placed above such a label in a panel. By clicking the combo box a selective list drops down and covers the label. As soon as a mouse click is performed on a list item directly covering (i.e., right in front of) the clickable label not only this item is selected but the help screen associated with the underlying label is displayed, too. So the mouse click is processed twice: as proposed by the combo box and unwantedly by the label. This behaviour could not be reproduced on other components being placed below a combobox. So the label itself seems to be the cause but we cannot imagine what could exactly be the reason for this double reaction. Perhaps anyone heard of something like that?
We are currently working with IBM Visual Age for Java 2.0 (Java version 1.1.8 with the according Swing version). The clickable label reflectively calls methods of a model to determine whether help is available and if so later on to open this help text.
Any help is appreciated!
DaniloThank you for your response. I tried both to check the focus and to consume the event. But I had to learn that labels are not able to catch the focus. I also was not able to consume an appropriate event of the combobox. So I finally solved the problem by extending JButton and implementing ActionListener. Thus my labels are actually buttons but I changed their appearance and behaviour so one cannot distinguish them from labels.
Maybe you are looking for
-
Can't Mount External HD, Greyed out in DU, Verifies fine
I have a third-party hard drive enclosure I've been using for years with an IDE drive. I have two identical external HD cases and it does the same thing in both. So I know it's not the case. All of a sudden, I can't get the drive to mount. 1. It show
-
N73 2.0628.0.1 This model/firmware seems to be a really buggy release. There's a lot of problems people are experiencing with it. The moderators of this forum claim that Nokia staff do read and take into considaration problems reported here, although
-
Can't open iCal appointment invitation in iPhone
When I receive an invitation from another iCal user, I cannot open it in my iPhone, I have to open my MacBook to accept or decline. How do I fix this?
-
Hello, I bought my iphone in japan. And now I'm in Brazil and I use it here, I need the unlock code for me to use here. please
-
CATS_DA - button OrgStructure?
Hi, In transaction CATS_DA we have standard toolbar button OrgStructure. Where can I find code behind this button and how to change it? thanks. Adibo.