Developer forum

Forum » Templates » javascript

Reply

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


Replies

 
Nicolai Høeg Pedersen
Reply
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)-->

 
Reply
np wrote:
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)-->


 

excellent, thanks!

 

You must be logged in to post in the forum