Payday Loans - Debt Consolidation - Lockers - Bet365 bonus - Apply for Credit Card

PDA

View Full Version : Javascript and smarty... please help!!


easydolla
Dec 23rd 2008, 8:49 pm
God I have been trying to figure this out for ever. I have js popunder script which I am need to use on my dynamic website. It doesnt work unless its on a static page.


The only way I thought I could implement it was by inserting the code into the footer, home, or header files

But it still doesnt work


I tried everything, after </head> , even in the javascript includes section, just wont work! I either get the smarty compiler error or it doesnt work


can somebody PLEASE FING HELP ME

thanks :D

ing
Dec 23rd 2008, 9:09 pm
Did you try putting your javascript code within {literal} {/literal} tags?


{literal}
<script language="javascript">
......
</script>
{/literal}

easydolla
Dec 24th 2008, 9:55 am
Did you try putting your javascript code within {literal} {/literal} tags?


{literal}
<script language="javascript">
......
</script>
{/literal}


Thanks for the help but it didnt work =/

phper
Dec 28th 2008, 9:57 pm
I either get the smarty compiler error or it doesnt work
They seem to be two different issues.

If you get Smarty compiler error, most probably you have curly brackets ('{' or '}') that you didn't place inside a {literal}...{/literal} block.

If it doesn't work, then something in the JavaScript or HTML is wrong. What it is, I can't tell without knowing the error message and probably the actual code too.

hackfanatic
Dec 29th 2008, 9:14 pm
literal usually works, but if not try this

{ = {ldelim}
} = {rdelim}

but this gets kinda irritating though .. cos you gotta replace all the curly braces with the codes.

anyway. give it a shot, ;)