Codeigniter Clone In jQuery |
[eluser]titoneo[/eluser]
Good! I think that you want is receive 'combined views' in a single .html file (as discussed above), caching them and, in the other hand, request the data in json format to merge with templates at the end, right? The problem I guess is that you will need some aditional logic to combine them or group them to create the view pages. Then, where do you place this logic? in the controller? I think the controller can manage the action views in the client side with events (because this scenario is a bit different compared to the MVC pattern in the server) but no the build process of the view, makes sense? Maybe compare json hierarchy with html template hierarchy Maybe, this need something like 'view_handler' (directives) with javascript code to handle them when the hierarchy isn't enough and where have to place it in the DOM (some times it's not necessary create a full view, only a piece). This resource can inspire you: http://beebole.com/pure/demos/ This is my vision of this, but I can be wrong, give me your point of view! Regards! |
Messages In This Thread |
Codeigniter Clone In jQuery - by El Forum - 07-10-2010, 02:47 AM
Codeigniter Clone In jQuery - by El Forum - 07-10-2010, 01:35 PM
Codeigniter Clone In jQuery - by El Forum - 07-10-2010, 06:48 PM
Codeigniter Clone In jQuery - by El Forum - 07-10-2010, 08:34 PM
Codeigniter Clone In jQuery - by El Forum - 07-11-2010, 08:36 AM
Codeigniter Clone In jQuery - by El Forum - 07-12-2010, 09:58 PM
Codeigniter Clone In jQuery - by El Forum - 07-13-2010, 01:34 PM
Codeigniter Clone In jQuery - by El Forum - 09-24-2010, 02:27 AM
|