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

cpEIGetValue error

Explorer ,
Sep 19, 2013 Sep 19, 2013

Copy link to clipboard

Copied

I have a large number of files with a button that launches a script.  Recently, I had to change all of them because window.open no longer worked.  My script now looks like this:

//<script type="text/javascript">

function launchwin() {

var SiteName="www.[DIRECTORY]";

var TipName="01_Creating_a_Letter/01_Creating_a_Letter";

document.location="http://"+SiteName+"/"+TipName+".htm";

}

//-->

//]]>

I'm not showing the directory on a public forum, but the link works if I patch it together manually, and the script works perfectly in other RoboHelp files.

In this project, however, it brings up an error message "Unable to set property 'cpEISetValue' of undefined or null reference."  Code 0

The error message also gives the URL for the link, which works correctly.

If I click "No" to the message about continuing to run scripts, it launches the link.  If I click yes, I'm stuck.

I've tried the script in several files in the project, and the same thing happens each time.

Has anyone seen this?  Any ideas?

It's a real problem for me - I'm going on a 3-week vacation this weekend, and the client wants the files quickly.

Thanks for any help!

Views

625

Translate

Translate

Report

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 ,
Sep 19, 2013 Sep 19, 2013

Copy link to clipboard

Copied

Where does the cpElGetValue come in? It looks like an Adobe Captivate variable to me, is that correct?

Greet,

Willam

Votes

Translate

Translate

Report

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
Explorer ,
Sep 19, 2013 Sep 19, 2013

Copy link to clipboard

Copied

Thanks for the response, Willam,

It's not anywhere that I can find - not in the Robohelp file, not a Captivate variable, and not in either the .htm or .js files.

It seems to have to do with points scored in Captivate.

The reason I look for it in RoboHelp is that it happens when I click the button that launches the above script.  If I launch the Captivate .htm/.swf file link it works fine.

Votes

Translate

Translate

Report

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 ,
Sep 20, 2013 Sep 20, 2013

Copy link to clipboard

Copied

This sounds like a CP issue to me. It is not RoboHelp related in any case as it's just a JavaScript opening a popup window. But is seems Captivate fails to assign the variable to the popup.

Try the following: Create an HTML file manually. Then add the JavaScript to that and try to open the file. You should get the same error. If so, it is certainly a CP error.

I would suggest you also post on the Captivate forum.

Greet,

Willam

Votes

Translate

Translate

Report

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
Explorer ,
Sep 20, 2013 Sep 20, 2013

Copy link to clipboard

Copied

LATEST

Thanks, Willam,

I have also posted on the Captivate forum. Your suggestion of doing a

manual html file is a good one - I'll try that.

The thing is, I've done hundreds of these and never had a problem. It

doesn't make sense that for this particular application it wouldn't work.

Fortunately, it's no longer urgent. While the error message shows up in the

RoboHelp preview, there is no problem when the project is published for the

client (after much clearing of caches, etc.) So I can figure it out at my

leisure.

One possibility is that I had added a Google Analytics script to these files

in RoboHelp, and that may be related.

Votes

Translate

Translate

Report

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
RoboHelp Documentation
Download Adobe RoboHelp