Bridge: chooseMenuItem command does not work in an onClick function

  • 2
  • Problem
  • Updated 5 years ago
  • (Edited)
The chooseMenuItem command in JavaScript for Bridge CS6 32bit and 64bit (O.S. Windows 7) only works in the inline code, it does not work in an onClick function.

As an example....


#target bridge

var w = new Window('dialog');
w.bu1 = w.add('button',undefined,'Info');
w.bu2 = w.add('button',undefined,'Cancel');
//this will work here

//Will not work here, this applies to all chooseMenuItem commands.
alert("Command given to show about");
Photo of Paul Riggott

Paul Riggott

  • 328 Posts
  • 124 Reply Likes

Posted 5 years ago

  • 2

Be the first to post a reply!