Posted on 05/06/2008 16:36:50
jan@magentamultimedia.no wrote:
Hi
Is there any way to parse DW tags inside javsacript blocks?
Iguess not since I tried the code below and it didnt work:
<script type="text/javascript">
alert("<!--@TemplateParagraph2-->");
</script>
I'd like to make my own popup pages for a gallery w. AJAX.
Also, can I include serversided scripts?
-jan
Hi Jan
You can always do like this:
<div style="display:none" id="hiddenContent">
!--@TemplateParagraph2-->
</div>
<script type="text/javascript">
alert(document.getElementById("hiddenContent").innerHtml());
</script>
You can include serverside scripts aka .NET WebUserControls:
!--@LoadControl(/Files/System/Controls/SomeControl.ascx)-->