Javascript associative arrays being filtered...

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
yabune
Forum Members
Forum Members
Posts: 40
Joined: Wed Dec 05, 2007 7:28 pm

Javascript associative arrays being filtered...

Post by yabune »

I'm using javascript arrays in my template, like {abc:'aaaa', def:'bbb'}, but when it's parsed to the real site it disappears... is it some kind of cmsms filter?

Thanks!
alby

Re: Javascript associative arrays being filtered...

Post by alby »

yabune wrote: I'm using javascript arrays in my template, like {abc:'aaaa', def:'bbb'}, but when it's parsed to the real site it disappears... is it some kind of cmsms filter?
Because { } is used from smarty;  wrap your js code with {literal} ..... {/literal}

Alby
Post Reply

Return to “Developers Discussion”