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

Getting started with Bridge CEP/HTML5 extensions.. need some help

Explorer ,
Jan 18, 2018 Jan 18, 2018

I'm stuck with my first Bridge CC 8.0 CEP extension. I'm trying to create an event handler that will trigger in the main.js when a user selects a new thumbnail in the content window and call a function in the extendscript. I've tried a few different options with the following code but nothing appears to work. Thanks for any advice.

var csInterface = new CSInterface();
csInterface.addEventListener(document.open,function(e){
alert("thumbnail selected!");
});
TOPICS
Scripting
785
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 ,
Jan 19, 2018 Jan 19, 2018
LATEST

It doesn't look like addEventListener is a method for app.document. I do see it listed for window, so maybe look for a mousedown in the document window and check document.selection to see if it has changed? Just guessing here. The Object Model Viewer shows which objects have what methods.

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