This is my best understanding (using ExtJS as an case-study):
Models --> Stores (Generally these communicate with the server side)
Views --> Layouts + Widgets (these generate and respond to events)
Controllers --> Events that control interactions between widgets and stores
Ext has simplified Models with its Ext.direct stuff.
How's that?
-tim
On 3/30/2010 1:01 PM, Thadeus Burgess wrote:
How do you MVC a javascript client application?
So I have web2py acting as the server, and I write a Javascript GUI
(based off extjs or similar library).
So of course this goes in the View files... The interesting question
is that these client side js have their own MCV on top of that (models
are your JSONRPC, controllers to format data/communicate with server,
and then view code to generate/populate the html).
-Thadeus
--
You received this message because you are subscribed to the Google
Groups "web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en.
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to
web2py+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en.