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

CP3-Javascript-IE7

Guest
Dec 04, 2007 Dec 04, 2007

When preparing questions in the Captivate 3, there is an option part that can be selected "Execute Javascript" option.
In captivate 2, it is possible to execute javascript if the question correct or wrong using Internet Expolerer 7.0
but in the Captivate 3, I am not able to success this operation.
To see the problem, you can follow below steps:

> 1.Insert Question Slide from Quiz tab
> 2.Choose any type of Question
> 3.Produce a question and select an answer
> 4. Go options tab
> 5."If correct answer" select "Action", choose "Execute Javascript"
> 6.Write alert("true") in the javascript panel
> 7."If wrong answer"
> 8. Allow user 1 attempt
> 9. Select "Failure levels" <none>
> 10. Select "Action" choose "Execute Javascript"
> 7. alert("wrong")

when you publish it and try to execute using Internet Explorer 7.0. ... There will be an error saying that "Internet Explorer
cannot download. Unspecified Error"

Please Help!!!
876
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
Participant ,
Dec 05, 2007 Dec 05, 2007
Hi ii_metu,

Welcome to the Captivate forums.

I think you might be going about the "execute JavaScript" function in the wrong manner.

Here is what I do...
I create a function, for example to close the browser window:
function closeBrWindow()
{
window.opener="";
window.close();
}

I write that function in the standard.js file located here:
C:\Program Files\Adobe\Adobe Captivate 2\Templates\Publish

Now I create a Captivate project. In the Project I create a action (for example a click box). For the property of that I action I wan to call the "closeBrWindow()" function.

I select execute JavaScript, then I place this in the window:
javascript:closeBrWindow();

Then I publish the Project. When I fire the HTML then click the action the browser window closes.

When you call a javascript in Captivate (2) you only have the reference the script to call it.

TPK
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
Guest
Dec 07, 2007 Dec 07, 2007
There is no problem with Captivate 2. The problem is with Captivate 3. I am both using captivate 2 and captivate 3. We bought Captivate 3 since Captivate 2 has some deficiencies such as it does not support Vista. But now In Captivate 3, We are not able to success things that we can able to in Captivate 2.

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
Advocate ,
Dec 07, 2007 Dec 07, 2007
Hi ii_menu,

You mentioned both IE7 and Vista in your post... are you saying that Captivate 3-generated files don't execute Javascript in IE7 on Vista but Captivate 2-generated files *do* execute Javascript in IE7 on Vista? Or do you see the problem in IE7 on Windows XP as well?

The point being that it's likely a security issue with IE7 and/or Vista (if that's also part of the equation). Are you running in a corporate or other environment that may have specific security settings in IE/Vista? If so, you may need to try to figure out what might be different from a "typical" install and see if you can get those settings changed back.

Also, are you testing your files from a web server? Web browser functionality is fairly restricted when files are run locally so always test your files from a web server.
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
Guest
Dec 07, 2007 Dec 07, 2007
Captivate2 generated files "do" execute Javascript in IE7 on vista and xp but Captivate 3-generated files don't execute Javascript in IE7 on vista and xp

I make tests on two different web servers using different operating systems (Vista,XP) with internet explorer 7.0 and Also try on windows 2000 using the IE6.

Captivate 2 works very well with all the situations but Captivate 3 does not.

While trying Captivate 3 generated files with IE6 on windows 2000, it opens a new internet explorer page then Javascript execute.
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
Advocate ,
Dec 07, 2007 Dec 07, 2007
Eek... that doesn't sound good.

Have you tried publishing your IE7-bound projects to a different version of the Flash Player?
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
Guest
Dec 10, 2007 Dec 10, 2007
"Have you tried publishing your IE7-bound projects to a different version of the Flash Player? "
I don't know how can I do this, may you help about it..

Thank you for your help..
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
Advocate ,
Dec 10, 2007 Dec 10, 2007
In the Captivate publish dialog, the Flash Version dropdown determines which version of the Flash Player your project is published for.

Try changing it to an earlier version of Flash and see if that helps.
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
Guest
Dec 11, 2007 Dec 11, 2007
I tried it for Flash Player 7 , 8 ,9. But it does not work. :(

Thanks a lot.
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
Advocate ,
Dec 11, 2007 Dec 11, 2007
Just to clarify... you did publish/copy the files to a dedicated web server and then access them from there in IE7? The easiest way to verify that you're running from a web server is that the URL in the browser Address bar starts with " http://".

It sounds like you did, but I wanted to make you weren't just running the files directly from a machine or networked drive from both Vista and XP. Security restrictions on running files directly usually prevent Javascript from being executed in the browser.

Barring that... until somebody else with IE7 and Captivate 3 can chime in with a suggestion, I think you may be stuck.

Your only other option is to get on the line with Adobe Support and see if you can get your problem escalated to an engineer who can replicate what you're seeing.
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
New Here ,
Dec 12, 2007 Dec 12, 2007
I've got to say - I use IE7 and Javascript with Cap3 and don't have any issues. I pretty much do what TPK does though.
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
Guest
Dec 12, 2007 Dec 12, 2007
Hi, jiminiCricket can you tell steps you use
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 ,
Feb 22, 2008 Feb 22, 2008
LATEST
Just read the post. Don't know if this helps, but with Flash Player 8 and later, you need to add
<PARAM name=allowScriptAccess value=always> to the object tag area of the html that is generated by Captivate.

If you modify the published html and this fixes the problem, you an add the line to the template in the Publish folder and it'll publish out for subsequent projects.
Don't recall where I came across this, but it was someone nexted in the Adobe knowlegebase.
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