1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to retrieve your options in your JavaScript file 1.0

Demo showing how to get options from template to JavaScript

  1. cclaerhout

    cclaerhout Well-Known Member

    cclaerhout submitted a new resource:

    How to retrieve your options in your JavaScript file - Demo showing how to get options from template to JavaScript

    Read more about this resource...
     
  2. cclaerhout

    cclaerhout Well-Known Member

  3. Dylan V

    Dylan V Well-Known Member

    Thanks for your help, but I've a little trouble understanding. I just need help about link my XenForo syntax located in an external JavaScript file to my style property:

    Screenshot_1.png
    Screenshot_2.png

    @enabledDefaultBannerPickerImage only works if I put it in the template of my style and not if I put it in an external JavaScript file. My code works, but I can't fix this problem with my own method of coding.
     
  4. cclaerhout

    cclaerhout Well-Known Member

    Look at the template "demo_settings_js" ; you can use your style property in a data tag. I can only tell you to spend more time to read the code to understand it. You have all what you need here. I can't do more, sorry.
     
  5. cclaerhout

    cclaerhout Well-Known Member

Share This Page