I have a template for a script (.tpl file).? In it, I have a number of variables that can be accessed to show information on the page.? It looks like this:
? ? <div style="line-height:20px; vertical-align:top; padding-left:500px;">[Terms of Use | Privacy Policy]</div>
? ? ? {if $loggedin == "1"}
? ? ? ? Defence Level : {$[login to view URL]}
? ? ? ?
? ? ? ? Strength Level : {$[login to view URL]}
? ? ? ?
? ? ? ? <a href="{$directory}[login to view URL]" title="Visit the Hospital to Heal Fully">Hitpoints</a> : {$[login to view URL]}
? ? ? ?
? ? ? ? Energy : {$[login to view URL]}
? ? ? ?
? ? ? ? <a href="{$directory}[login to view URL]" title="Deposit All Gold">Gold</a> : {$[login to view URL]|number_format:0:".":","}
? ? ? {/if}
? ? </div>
I don't know anything about Javascript or Ajax.? What do I need to do exactly to make it where these values will update automatically when they change?? Thanks.