Hi Ganesh, thanks for your reply.
I had already seen the example you pointed out, but I still have a basic doubt: let’s say I have a snippet such as this:
<?php
$modx->setPlaceholder('name','Marcello');
return;
?>
And I’m calling it from a document that has both HTML and Javascript code. Let’s assume I want to use the placeholder ’name’ in my Javascript code. How do I do that?
I tried some stuff
<script>
var name = [[name]];
var name = [[+name]];
.
.
.
.
</script>
and many other combinations, but nothing seems to work. At this point I’m not even sure what I’m trying to do is possible...
Thanks,
Marcello