|
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 |
blackhawkmx Smarty Regular
Joined: 20 May 2005 Posts: 76
|
Posted: Fri Mar 27, 2009 3:31 pm Post subject: change values with a href link? |
|
|
Sup peeps,
Is there a way to change a value after clicking on a link. for example i would like
Code: |
{assign var='test' value='true'}
|
to change to
Code: |
{assign var='test' value='false'}
|
when someone clicks <a href="some value?">click on me</a>
thanks _________________ Bring it back to basics. You and I can make it right! |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Fri Mar 27, 2009 4:49 pm Post subject: |
|
|
By the time the link is clicked, smarty is long done with its job on the server side. Maybe you mean something else, like switching a javascript variable or? |
|
Back to top |
|
blackhawkmx Smarty Regular
Joined: 20 May 2005 Posts: 76
|
Posted: Sat Mar 28, 2009 3:25 pm Post subject: |
|
|
Actually...yes that's what i'm trying to do - change a javascript variable once a user clicks on a link - I'll play around with that as my focus now - thank you for the response mohrt!
-bh _________________ Bring it back to basics. You and I can make it right! |
|
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
|