Home Tour Demo FAQ App Gallery Buy Now    
Home > Template Tags > How to stop Memberkit to change Javascri...


How to stop Memberkit to change Javascript codes?

{IGNORE}

Memberkit will scan through your templates and changes all occurances of {...} tags. Memberkit tags look like javascript objects and sometimes our template engine can confuse this tags and may remove your Javascript codes from published site.

In order to prevent such errors, you should use {IGNORE} .... Ignored text ... {/IGNORE} tags. Memberkit template engine will ignore the lines between these two tags.

Problem:
This is what you wrote:
< script>
    $('myelem').setStyle({heigh:'250px', width:'450px'});
< /script>

And this is what Memberkit published

< script>
    $('myelem').setStyle();
< /script>


Solution:
{IGNORE}
< script>
    $('myelem').setStyle({heigh:'250px', width:'450px'});
< /script>
{/IGNORE}

Important: If you forget to close {IGNORE} tag. Memberkit template engine will completely stop after parsing this template. Don't forget to close IGNORE tags with {/IGNORE} tag



Tags: template tags tips
Related Articles:

Add a new comment

Send Comment

 
 
Customer Log-in | Support Forums | User Guide | Free Form Builder | Contact Memberkit Team