0
CP3-Javascript-IE7

/t5/captivate-discussions/cp3-javascript-ie7/td-p/503005
Dec 04, 2007
Dec 04, 2007
Copy link to clipboard
Copied
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!!!
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Participant
,
/t5/captivate-discussions/cp3-javascript-ie7/m-p/503006#M23813
Dec 05, 2007
Dec 05, 2007
Copy link to clipboard
Copied
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
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
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

Guest
AUTHOR
/t5/captivate-discussions/cp3-javascript-ie7/m-p/503007#M23814
Dec 07, 2007
Dec 07, 2007
Copy link to clipboard
Copied
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.


Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Advocate
,
/t5/captivate-discussions/cp3-javascript-ie7/m-p/503008#M23815
Dec 07, 2007
Dec 07, 2007
Copy link to clipboard
Copied
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.
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.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

Guest
AUTHOR
/t5/captivate-discussions/cp3-javascript-ie7/m-p/503009#M23816
Dec 07, 2007
Dec 07, 2007
Copy link to clipboard
Copied
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.
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.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Advocate
,
/t5/captivate-discussions/cp3-javascript-ie7/m-p/503010#M23817
Dec 07, 2007
Dec 07, 2007
Copy link to clipboard
Copied
Eek... that doesn't sound good.
Have you tried publishing your IE7-bound projects to a different version of the Flash Player?
Have you tried publishing your IE7-bound projects to a different version of the Flash Player?
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

Guest
AUTHOR
/t5/captivate-discussions/cp3-javascript-ie7/m-p/503011#M23818
Dec 10, 2007
Dec 10, 2007
Copy link to clipboard
Copied
"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..
I don't know how can I do this, may you help about it..
Thank you for your help..
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Advocate
,
/t5/captivate-discussions/cp3-javascript-ie7/m-p/503012#M23819
Dec 10, 2007
Dec 10, 2007
Copy link to clipboard
Copied
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.
Try changing it to an earlier version of Flash and see if that helps.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

Guest
AUTHOR
/t5/captivate-discussions/cp3-javascript-ie7/m-p/503013#M23820
Dec 11, 2007
Dec 11, 2007
Copy link to clipboard
Copied
I tried it for Flash Player 7 , 8 ,9. But it does not work.
:(
Thanks a lot.
Thanks a lot.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Advocate
,
/t5/captivate-discussions/cp3-javascript-ie7/m-p/503014#M23821
Dec 11, 2007
Dec 11, 2007
Copy link to clipboard
Copied
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.
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.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
New Here
,
/t5/captivate-discussions/cp3-javascript-ie7/m-p/503015#M23822
Dec 12, 2007
Dec 12, 2007
Copy link to clipboard
Copied
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.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

Guest
AUTHOR
/t5/captivate-discussions/cp3-javascript-ie7/m-p/503016#M23823
Dec 12, 2007
Dec 12, 2007
Copy link to clipboard
Copied
Hi, jiminiCricket can you tell steps you use
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Beginner
,
LATEST
/t5/captivate-discussions/cp3-javascript-ie7/m-p/503017#M23824
Feb 22, 2008
Feb 22, 2008
Copy link to clipboard
Copied
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.
<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.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

