Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Javascript Templating Engine
Goto page Previous  1, 2
 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Smarty Development
View previous topic :: View next topic  
Author Message
balupton
Smarty Rookie


Joined: 15 Feb 2008
Posts: 11
Location: Perth, Australia

PostPosted: Sun May 18, 2008 10:35 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Smarty Development All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
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
Protected by Anti-Spam ACP