Hi,
I'm trying to access an extra field value from within javascript. How can I do this??
Here is what I have if it helps, it's take from the customer/main/product.tpl: I'm trying to Alert( {$v.field_value} )
Code:
{foreach from=$extra_fields item=v}
{if $v.service_name eq 'Audio_Playlist_Link' }
{if $v.field_value ne ''}
<div id="flashPlayer">
This text will be replaced by the flash music player.
{$v.field_value}
</div>
{literal}
<script type="text/javascript">
var so = new SWFObject("http://mindandzen.com/skin1/audio/audioplayer.swf", "audioplayer", "300", "100", "7", "#FFFFFF");
alert("{$v.field_value}");
so.addVariable("xmlFile", $v.field_value );
so.write("flashPlayer");
</script>
{/literal}
{/if}
{/if}