Welcome Guest, Not a member yet? Register   Sign In
Javascript calling smarty
#1

[eluser]Unknown[/eluser]
Hi, i'm doing some modification on script using smarty 2 ,
i have 2 question
1-javascript loading partial tpl file
2-javascript calling a variable from tpl file




/ i have page detail.tpl that use ( header.tpl , player.tpl, footer.tpl )

normaly he was inclued on other tpl like this

Code:
{include file="player.tpl" page="detail"}

but i want to call "player.tpl" in a javascript when i click he replace picture by player the code working expet that the player dont want to apear


Code:
playVideo : function(id, videoPageUrl)
{
        var vplayer = document.getElementById('vplayer');
        vplayer[removed] = 'video/player.tpl';
..........

what did i must write in the "file.js" to let it call the player.tpl when i exute the function ?
did i must add some ligne ? or changinng the path ?


Messages In This Thread
Javascript calling smarty - by El Forum - 09-23-2013, 09:12 AM
Javascript calling smarty - by El Forum - 09-23-2013, 09:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB