I am trying to have a javascript file write some code including an image defined by a variable, something like this:
The javascript executes and the phrase in the code above is written out but without functionality.
Can a variable be made to work within a javascript expression of document.write or is it not possible?
Similarly, I am also not able to get <actinic:block php="true" > to execute from within a javascript document.write expression.
(My reason is that I am recoding a client site and do not want to throw the baby out with the bathwater by getting rid of all his existing javascript layout elements, wishing merely to modify them to function with variables rather than full url hard coding.)
Thank you.
Code:
document.write('<actinic:variable encoding="perl" selectable="false" name="CompanyLogoImage" />;')
Can a variable be made to work within a javascript expression of document.write or is it not possible?
Similarly, I am also not able to get <actinic:block php="true" > to execute from within a javascript document.write expression.
(My reason is that I am recoding a client site and do not want to throw the baby out with the bathwater by getting rid of all his existing javascript layout elements, wishing merely to modify them to function with variables rather than full url hard coding.)
Thank you.
Comment