Log in

View Full Version : javascript in a template help


Michael.A
05-01-2012, 05:44 PM
getting an error when saving this in a template !!


<script type="text/javascript">

var brb = new Object();
brb.ad_url = escape "{vb:raw 4teck.url}";
brb.small_path = "{vb:raw vboptions.bburl}.'/brb_sm.swf'";
brb.small_image = escape "{vb:raw 4teck.s_i_path}";
brb.big_path = "{vb:raw vboptions.bburl}.'/brb_big.swf'";
brb.big_image = escape "{vb:raw 4teck.b_i_path}";

</script>


error is:
Warning: Invalid argument supplied for foreach() in [path]/includes/functions.php on line 3555

Warning Message!
The following error occurred when attempting to evaluate this template:
%1$s
This is likely caused by a malformed conditional statement. It is highly recommended that you fix this error before continuing, but you may continue as-is if you wish.

do you guys know why am getting this does the code look ok?

--------------- Added 1335898411 at 1335898411 ---------------

i got it do not start an array with a number

exp:-
{vb:raw 4teck.url} ---- :confused:
{vb:raw teck.url} ------ :rolleyes: