Skip navigation
aenigmabella
Currently Being Moderated

correct use of app.trustedFunction ?

Apr 16, 2012 10:11 AM

Hello,

 

I have a function1 which launch a diaglog when a user clicks on the button. Function1 is in the folder script.  For the click event, I have: script1.function1();


However, the dialog box has the title "JavaScript Window" and the warning "Warning: JavaScript Window".

 

I searched and follow the suggestion in the forum.  I created a app.trusted fuction as below:

 

 

var

vDialog = app.trustedFunction(function() {

      app.beginPriv();

      launchDialog();

     app.endPriv();

});

 

In the click event, I have:

 

######

     event.target.vDialog();



However, this doesn't work.  Could someone points out for me where the mistake is?  Also, is there a way to change the windown title, instead of "JavaScript Window", it says "Help Information"?



Thank you.

 
Replies

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points