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

How do I add JavaScript to an XUL(XML) file?

Contributor ,
Aug 26, 2022 Aug 26, 2022

Copy link to clipboard

Copied

Hello, I am developing a plugin for Adobe Animate. When I click not a script, I have a dialog box (written in XML).
1) Checkboxes should appear in this window depending on how many files are open in Animate.
2) You need to make sure that some elements are blocked (for example, button 1), and when you click on the checkbox (unlock button 1), button 1 is unlocked. Please help solve the problem.

TOPICS
Code , Exchange extensions , How to

Views

138

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
Community Expert ,
Sep 14, 2022 Sep 14, 2022

Copy link to clipboard

Copied

LATEST

Can you post your sample code? If you're trying to embed JS in XML, you're probably going to need to run it through an encodeURI() and then decode it with decodeURI() when you want to parse so you don't throw any formatting errors in XML.

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