Skip navigation
Currently Being Moderated

Javascript: Don't interact with the user -> Question isn't shown but canceled the action

Jun 26, 2012 8:00 AM

Hi

 

In m yJavascript I use a method from a third party plugin. During this method there is an alert, a question. I like to suppress this question.

 

I use app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT; and then the quesion isn't shown. But the method is canceled with a message like "The user canceled the action!".

 

Can I do something? Is there a workaround?

 

Thanks

Hans

 
Replies
  • Currently Being Moderated
    Jun 26, 2012 9:52 AM   in reply to hstoessel

    I encountered a similar error, however I wasn't using third party software. In my instance it was because the document had to be converted to a more current version, for whatever reason it wanted me toconvert the document and save it graphically before it would act upon it scriptually.

     

    Hope that helps.

     
    |
    Mark as:
  • Currently Being Moderated
    Jun 26, 2012 10:50 AM   in reply to hstoessel

    Hmmm. I don't know what "never interact" does, internally, but suppose you switched off user interaction and then a script calls "document.close". The three choices in the Save confirmation dialog are "Save:Yes", "Save:No", and "Cancel". Given that, it would be the safest to have it always return "cancel"!

     

    Since this is a 3rd party plugin, you probably can contact its manufacturor and ask for a workaround, or possibly a modification.

     
    |
    Mark as:

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