xonmac
27 Sep 2009, 8:16 PM
I thought I could share the new approach that I use in my Rails/ExtJS applications for creating composite reusable components (that is reusable code which includes both client and server parts). I have made a detailed blog post (http://blog.writelesscode.com/blog/2009/09/24/building-rails-extjs-reusable-components-with-netzke-part-3/) about it, accompanied by live-demo (http://netzke-demo.writelesscode.com/basic_app/demo#bossesAndClerksExt).
In a nutshell, the concept that I'm introducing allows you for calling Ruby methods "directly" from the JavaScript (Ext) code (similar to Ext.Direct), as well as doing the other way around: calling any number of JavaScript methods "from" Ruby in one single server response.
I hope this can be useful to someone, and would like to invite you for the discussion (http://groups.google.com/group/netzke).
Thanks!
In a nutshell, the concept that I'm introducing allows you for calling Ruby methods "directly" from the JavaScript (Ext) code (similar to Ext.Direct), as well as doing the other way around: calling any number of JavaScript methods "from" Ruby in one single server response.
I hope this can be useful to someone, and would like to invite you for the discussion (http://groups.google.com/group/netzke).
Thanks!