|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
jerrystar Smarty n00b
Joined: 16 May 2009 Posts: 3
|
Posted: Wed Jul 22, 2009 12:19 pm Post subject: smarty with javascript display |
|
|
Hi
I am using the smarty tag
{html_select_date prefix="yocDate" time=$TIME start_year="-50" display_days=false}
to display the year and month, I want to display this field dynamically ,so using javascript i called this function as
val = '<td>{html_select_date prefix="yocDate" time=$TIME start_year="-50" display_days=false}</td>';
document.getElementById('divTable').innerHTML = val;
while using this i am getting same sentence as output
{html_select_date prefix="yocDate" time=$TIME start_year="-50" display_days=false}
how to call this function from javascript any help
thanks in advance... |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Thu Jul 23, 2009 3:56 am Post subject: |
|
|
smarty is server side, javascript is client side. There is no smarty once the html is rendered to the browser. you would have to go back to the server to get something created with smarty. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|