We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 29696
    • 4 Posts
    Anyone know if it’s possible to pass a variable into a ditto call?

    For example:

    function change_text(variablename)
    {
    document.getElementById(’main_text’).innerHTML=
    [!Ditto?parents=`187`&depth=`2`&tpl=`repList`&display=`all`&tagData=`repState`&filter=`repState,"variablename",7`&sortBy=`menuindex`&sortDir=`ASC`!]

    }

    This is basically what I’m trying to do, or a watered down function of it.