Copy link to clipboard
Copied
Hello everyone,
I have captivate 8.0.0.145 and I'm creating an advanced action that executes a javascript.
I have my code in Notepad++ and I want to copy and paste the code written in Notepad++ to the javascript window but no matter what I do, when I hit the ok button my code dissapears.

Anyone have the same issue?
Thanks in advance.
Rosalie
Bit Off topic, but please install the patch to upgrade to 8.0.1, you still use the first release (several bugs).
For JS: this could be the reason, cannot you insert the code (create functions) in the JS file and call the function from the JS command in the advanced action?
Copy link to clipboard
Copied
Try copying your code to Notepad (not the ++ version) and then try copy/paste. It works for me. Perhaps Notepad ++ is not compatible.
Copy link to clipboard
Copied
Thanks for your reply Rod.
I copied the code in notepad and in sublime and I get the same result.
Is it possible that there's a limit of the amount of code?
Rosalie
Copy link to clipboard
Copied
Bit Off topic, but please install the patch to upgrade to 8.0.1, you still use the first release (several bugs).
For JS: this could be the reason, cannot you insert the code (create functions) in the JS file and call the function from the JS command in the advanced action?
Copy link to clipboard
Copied
Thanks for your reply @Lilybiri
I've installed these two:
1. 8 Patch (8.0.1.242) > 64-bit (296 MB)
2. 8 Patch (8.0.3.290) > 64-bit (438 MB)
But still not able to keep the code in the script window.
But I think it's a bug because I cannot insert the code when creating an Advanced Action > Execute Javascript > Script window. However, I'm able to insert the code in slide properties > action > On enter > execute javascript > Script window
I'm going to report this issue as a bug.
Thanks for your help.
Rosalie
Copy link to clipboard
Copied
The JS window is limited, not only for your work flow. That is why I suggested the other work flow.
Copy link to clipboard
Copied
In my experience that happens when Captivate doesn't like characters in your script. You cannot use for loops and some other things.
You can put it in the other window as you described, but it won't execute.
Copy link to clipboard
Copied
Thanks, David, glad you popped in because you can explain much better the limitations of the JS window in Captivate.
Copy link to clipboard
Copied
And because of those limitations, and the text is just too small to read at my age,
I only use it to call external functions.
The best part is that you don't have to republish to edit your code.
Copy link to clipboard
Copied
That is what I tried to explain, but it seems to be ignored. We are not talking about age, David
. Did you try to read that screen on a Surface Pro (retina screen)? I like that device a lot, but not for more than 1hr of Captivate.
Copy link to clipboard
Copied
No I haven't. I'm usually on dual 24in monitors, when I'm at home I'm on a laptop and it's time for the reader's to come out!
Copy link to clipboard
Copied
Hi,
Thanks for your help @RodWard @Lilybiri @TLCMediaDesign
@Lilybiri I wasn't ignoring you it was a bit late for me and my brain wasn't working properly at that time. ![]()
As you suggested, the problem is with the length of my code so I will go with the other workflow, I've tested and the code works as expected.
Rosalie
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more