|
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 |
balupton Smarty Rookie
Joined: 15 Feb 2008 Posts: 11 Location: Perth, Australia
|
Posted: Sun May 18, 2008 10:35 pm Post subject: |
|
|
Now additional to what I have mentioned above, there will be one more killer feature.
So if I have a link:
Code: | <a href="index.php?page=shift" class="button"><button>Check-In</button></a> |
or:
Code: | <form action="index.php" method="post">
<input type="hidden" name="page" value="shift" />
<input type="submit" value="Check-In" />
</form> |
By adding a css class to them say "jqsmarty-compat", JQSmarty will rewrite it, so that when the link or submit button is pressed, instead of moving on to the page, it will do an ajax request to the data interface, which will in turn return the updated data, which jqsmarty will then assign, and so the auto_updates and onchanges will fire, and you have magic. |
|
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
|