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

Not able to copy&paste in javascript window

Community Beginner ,
Feb 18, 2016 Feb 18, 2016

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.

022016_javascript.png


Anyone have the same issue?

Thanks in advance.

Rosalie

701
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

correct answers 1 Correct answer

LEGEND , Feb 18, 2016 Feb 18, 2016

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?

Translate
Community Expert ,
Feb 18, 2016 Feb 18, 2016

Try copying your code to Notepad (not the ++ version) and then try copy/paste.  It works for me.  Perhaps Notepad ++ is not compatible.

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 18, 2016 Feb 18, 2016

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

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
LEGEND ,
Feb 18, 2016 Feb 18, 2016

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?

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 ,
Feb 18, 2016 Feb 18, 2016

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

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
LEGEND ,
Feb 18, 2016 Feb 18, 2016

The JS window is limited, not only for your work flow. That is why I suggested the other work flow.

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
People's Champ ,
Feb 18, 2016 Feb 18, 2016

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.

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
LEGEND ,
Feb 18, 2016 Feb 18, 2016

Thanks, David, glad you popped in because you can explain much better the limitations of the JS window in Captivate.

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
People's Champ ,
Feb 18, 2016 Feb 18, 2016

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.

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
LEGEND ,
Feb 18, 2016 Feb 18, 2016

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.

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
People's Champ ,
Feb 18, 2016 Feb 18, 2016

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!

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 19, 2016 Feb 19, 2016
LATEST

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

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