We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 12584
    • 208 Posts
    I have a little javascript that I use to add an image slide show to a page, when I add this via the html option the page shows the html no problem but all the javascript has been taken out, I know chunks are for html ans snippets are for php but what do I use for javascript.

    Cheers

    Ian
      • 28042 ☆ A M B ☆
      • 24,524 Posts
      You can use chunks for javascript as well; basically anything you would put in a text HTML file can be put in a chunk.
        Studying MODX in the desert - http://sottwell.com
        Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
        Join the Slack Community - http://modx.org
        • 12584
        • 208 Posts
        Oh right so simple when you know how smiley

        Thats got things working perfect thanks for that

        Cheers

        Ian