As subject. I abandoned prototype, I'' seeing jquery ui but I was impressed by ExtJS. What do you use/recommend in general? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Look at the demos http://jqueryui.com/demos/ 2011/1/10 Mauro <mrsanna1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> As subject. > I abandoned prototype, I'' seeing jquery ui but I was impressed by ExtJS. > What do you use/recommend in general? > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- Rodrigo Mendonça (62) 8567-3142 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
2011/1/10 Rodrigo Mendonça <denoww-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:> Look at the demos > http://jqueryui.com/demos/Yes I''ve seen. Have you looked at extjs? http://dev.sencha.com/deploy/dev/examples/ -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Extjs is free only when your project is not commercial Extjs has a complicated syntax and semantic Extjs is very powerfull but not flexible then jquery ui JqueryUI''s community is bigger then Extjs you want datagrid? its here with jquery http://www.trirand.com/blog/jqgrid/jqgrid.html <http://www.trirand.com/blog/jqgrid/jqgrid.html>What else you want?? i will help you =D 2011/1/10 Mauro <mrsanna1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> 2011/1/10 Rodrigo Mendonça <denoww-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>: > > Look at the demos > > http://jqueryui.com/demos/ > > Yes I''ve seen. > Have you looked at extjs? > http://dev.sencha.com/deploy/dev/examples/ > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- Rodrigo Mendonça (62) 8567-3142 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
jqgrid to rails https://github.com/ahe/2dc_jqgrid <https://github.com/ahe/2dc_jqgrid>I am using this with rails 3... perfect, but i will develop my own datagrid in future... with jquery offcourse =D Em 10 de janeiro de 2011 11:15, Rodrigo Mendonça <denoww-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>escreveu:> Extjs is free only when your project is not commercial > > Extjs has a complicated syntax and semantic > > Extjs is very powerfull but not flexible then jquery ui > > JqueryUI''s community is bigger then Extjs > > you want datagrid? its here with jquery > http://www.trirand.com/blog/jqgrid/jqgrid.html > > <http://www.trirand.com/blog/jqgrid/jqgrid.html>What else you want?? i > will help you =D > > 2011/1/10 Mauro <mrsanna1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > >> 2011/1/10 Rodrigo Mendonça <denoww-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>: >> >> > Look at the demos >> > http://jqueryui.com/demos/ >> >> Yes I''ve seen. >> Have you looked at extjs? >> http://dev.sencha.com/deploy/dev/examples/ >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ruby on Rails: Talk" group. >> To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To unsubscribe from this group, send email to >> rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> >> . >> For more options, visit this group at >> http://groups.google.com/group/rubyonrails-talk?hl=en. >> >> > > > -- > Rodrigo Mendonça > (62) 8567-3142 >-- Rodrigo Mendonça (62) 8567-3142 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
2011/1/10 Rodrigo Mendonça <denoww-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:> jqgrid to rails > https://github.com/ahe/2dc_jqgrid > I am using this with rails 3... perfect, but i will develop my own datagrid > in future... with jquery offcourse =DGreat, thank you. Will you develop your own datagrid because you don''t like that one? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
I love this datagrid, but i need some extra behaviour like add columns and improve the filter. The application is mine and will be perfect But jqgrid is great.. i am very meticulous with my application =D 2011/1/10 Mauro <mrsanna1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> 2011/1/10 Rodrigo Mendonça <denoww-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>: > > jqgrid to rails > > https://github.com/ahe/2dc_jqgrid > > I am using this with rails 3... perfect, but i will develop my own > datagrid > > in future... with jquery offcourse =D > > Great, thank you. > Will you develop your own datagrid because you don''t like that one? > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- Rodrigo Mendonça (62) 8567-3142 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
2011/1/10 Rodrigo Mendonça <denoww-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:> I love this datagrid, but i need some extra behaviour like add columns and > improve the filter. The application is mine and will be perfect > But jqgrid is great.. i am very meticulous with my application =DI''m tryingjqgrid. As I read in http://www.2dconcept.com/jquery-grid-rails-plugin I''ve installed the plugin, there isn''t a gem, create a scaffold, modifyed the controller and the index.html.erb but this is the page result: <script src="/javascripts/jqgrid/jquery.js?1294673964" type="text/javascript"></script> <script src="/javascripts/jqgrid/jquery-ui-1.7.1.custom.min.js?1294673964" type="text/javascript"></script> <script src="/javascripts/jqgrid/jquery.layout.js?1294673964" type="text/javascript"></script> <script src="/javascripts/jqgrid/i18n/grid.locale-en.js?1294673964" type="text/javascript"></script> <script src="/javascripts/jqgrid/jquery.jqGrid.min.js?1294673964" type="text/javascript"></script> <script src="/javascripts/jqgrid/jquery.tablednd.js?1294673964" type="text/javascript"></script> <script src="/javascripts/jqgrid/jquery.contextmenu.js?1294673964" type="text/javascript"></script> <script type="text/javascript"> var lastsel; jQuery(document).ready(function(){ var mygrid jQuery("#players").jqGrid({ url:''/users?q=1'', editurl:'''', datatype: "json", colNames:[''ID'',''Firstname'',''Lastname''], colModel:[{name:''id'', index:''id'',width:35,resizable:false},{name:''firstname'', index:''firstname''},{name:''lastname'', index:''lastname''}], pager: ''#players_pager'', rowNum:10, rowList:[10,25,50,100], imgpath: ''/images/jqgrid'', sortname: '''', viewrecords: true, height: 150, sortorder: '''', gridview: false, scrollrows: true, autowidth: false, rownumbers: false, multiselect: false, subGrid:false, caption: "Football Players" }) .navGrid(''#players_pager'', {edit:false,add:false,del:false,search:false,refresh:true}, {afterSubmit:function(r,data){return true;(r,data,''edit'');}}, {afterSubmit:function(r,data){return true;(r,data,''add'');}}, {afterSubmit:function(r,data){return true;(r,data,''delete'');}} ) .navButtonAdd("#players_pager",{caption:"",title:"Toggle Search Toolbar", buttonicon :''ui-icon-search'', onClickButton:function(){ mygrid[0].toggleToolbar() } }) mygrid.filterToolbar();mygrid[0].toggleToolbar() }); </script> <table id="players" class="scroll" cellpadding="0" cellspacing="0"></table> <div id="players_pager" class="scroll" style="text-align:center;"></div> It is text not html. I''m using rails 3, have I missed something? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
this plugin was developed in rails 2 rails 3 need the command html_safe to transform plain texto to html find the file vendor/plugins/2dc_jqgrid.rb and find the method jqgrid_javascript and put html_safe or put on the controllers or view... i changed this plugin and i don''t know exactly where you have to put the html_safe =D html_safe works well: "<div><div>".html_safe and it will transform to html 2011/1/10 Mauro <mrsanna1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> 2011/1/10 Rodrigo Mendonça <denoww-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>: > > I love this datagrid, but i need some extra behaviour like add columns > and > > improve the filter. The application is mine and will be perfect > > But jqgrid is great.. i am very meticulous with my application =D > > I''m tryingjqgrid. > As I read in http://www.2dconcept.com/jquery-grid-rails-plugin I''ve > installed the plugin, there isn''t a gem, create a scaffold, modifyed > the controller and the index.html.erb but this is the page result: > > <script src="/javascripts/jqgrid/jquery.js?1294673964" > type="text/javascript"></script> <script > src="/javascripts/jqgrid/jquery-ui-1.7.1.custom.min.js?1294673964" > type="text/javascript"></script> <script > src="/javascripts/jqgrid/jquery.layout.js?1294673964" > type="text/javascript"></script> <script > src="/javascripts/jqgrid/i18n/grid.locale-en.js?1294673964" > type="text/javascript"></script> <script > src="/javascripts/jqgrid/jquery.jqGrid.min.js?1294673964" > type="text/javascript"></script> <script > src="/javascripts/jqgrid/jquery.tablednd.js?1294673964" > type="text/javascript"></script> <script > src="/javascripts/jqgrid/jquery.contextmenu.js?1294673964" > type="text/javascript"></script> <script type="text/javascript"> var > lastsel; jQuery(document).ready(function(){ var mygrid > jQuery("#players").jqGrid({ url:''/users?q=1'', editurl:'''', datatype: > "json", colNames:[''ID'',''Firstname'',''Lastname''], colModel:[{name:''id'', > index:''id'',width:35,resizable:false},{name:''firstname'', > index:''firstname''},{name:''lastname'', index:''lastname''}], pager: > ''#players_pager'', rowNum:10, rowList:[10,25,50,100], imgpath: > ''/images/jqgrid'', sortname: '''', viewrecords: true, height: 150, > sortorder: '''', gridview: false, scrollrows: true, autowidth: false, > rownumbers: false, multiselect: false, subGrid:false, caption: > "Football Players" }) .navGrid(''#players_pager'', > {edit:false,add:false,del:false,search:false,refresh:true}, > {afterSubmit:function(r,data){return true;(r,data,''edit'');}}, > {afterSubmit:function(r,data){return true;(r,data,''add'');}}, > {afterSubmit:function(r,data){return true;(r,data,''delete'');}} ) > .navButtonAdd("#players_pager",{caption:"",title:"Toggle Search > Toolbar", buttonicon :''ui-icon-search'', onClickButton:function(){ > mygrid[0].toggleToolbar() } }) > mygrid.filterToolbar();mygrid[0].toggleToolbar() }); </script> <table > id="players" class="scroll" cellpadding="0" cellspacing="0"></table> > <div id="players_pager" class="scroll" > style="text-align:center;"></div> > > It is text not html. > I''m using rails 3, have I missed something? > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- Rodrigo Mendonça (62) 8567-3142 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
2011/1/10 Rodrigo Mendonça <denoww-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:> this plugin was developed in rails 2 > rails 3 need the command html_safe to transform plain texto to html > find the file vendor/plugins/2dc_jqgrid.rb and find the > method jqgrid_javascript and put html_safe > or put on the controllers or view... i changed this plugin and i don''t know > exactly where you have to put the html_safe =D > html_safe works well: "<div><div>".html_safe > and it will transform to htmlI''''ve find a lot of errors, for example the method total_entries does not exists, there isn''t a plugin for rails 3? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 10 Jan 2011, at 17:40, Mauro wrote:> 2011/1/10 Rodrigo Mendonça <denoww-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>: >> this plugin was developed in rails 2 >> rails 3 need the command html_safe to transform plain texto to html >> find the file vendor/plugins/2dc_jqgrid.rb and find the >> method jqgrid_javascript and put html_safe >> or put on the controllers or view... i changed this plugin and i >> don''t know >> exactly where you have to put the html_safe =D >> html_safe works well: "<div><div>".html_safe >> and it will transform to html > > I''''ve find a lot of errors, for example the method total_entries does > not exists, there isn''t a plugin for rails 3?It should be clear by now that gems/plugins for javascript generation are to be avoided. Not only will it generate ugly inline code in most cases, but you also lose a lot of control. If you want to use Javascript, then write Javascript, don''t let some ruby gem write the code for you. If you ever want to work with a framework (which is in no way comparable to jquery ui components, which are more granular and only implement the view layers and not a client side datastore etc) such as ExtJS or SproutCore or one of the MVC Javascript frameworks, you''ll simply have no other choice than to write proper Javascript (although with Sproutcore that''s quite debatable, but still). Best regards Peter De Berdt -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Peter De Berdt wrote in post #973721: [...]> you''ll > simply have no other choice than to write proper Javascript (although > with Sproutcore that''s quite debatable, but still).Just out of curiosity: what do you mean by that last remark? (I''ve been interested in SproutCore but haven''t really played with it yet.)> > > Best regards > > Peter De BerdtBest, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
it was made in rails 2 but it''s works fine for me on rails 3... i fix some problems in my migration to rails 3, but it was easy try this https://github.com/springbok/jqgrid-rails3 <https://github.com/springbok/jqgrid-rails3>It''s for rails 3 =D 2011/1/10 Mauro <mrsanna1-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> 2011/1/10 Rodrigo Mendonça <denoww-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>: > > this plugin was developed in rails 2 > > rails 3 need the command html_safe to transform plain texto to html > > find the file vendor/plugins/2dc_jqgrid.rb and find the > > method jqgrid_javascript and put html_safe > > or put on the controllers or view... i changed this plugin and i don''t > know > > exactly where you have to put the html_safe =D > > html_safe works well: "<div><div>".html_safe > > and it will transform to html > > I''''ve find a lot of errors, for example the method total_entries does > not exists, there isn''t a plugin for rails 3? > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- Rodrigo Mendonça (62) 8567-3142 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 10 Jan 2011, at 19:14, Marnen Laibow-Koser wrote:>> you''ll >> simply have no other choice than to write proper Javascript (although >> with Sproutcore that''s quite debatable, but still). > > Just out of curiosity: what do you mean by that last remark? (I''ve > been > interested in SproutCore but haven''t really played with it yet.)Apart from the fact that SproutCore uses ruby generators to generate its files and compile to a static build not much to be honest, but there''s always people nitpicking :-) The actual code you write is still Javascript of course. I''m more familiar with ExtJS (using it in production apps) although in a way I wish I wasn''t. Don''t get me wrong, it certainly has its merits, but there''s just too much in there that doesn''t gel with me for some reason. It''s probably just personal preference though, just like I prefer Ruby and Rails over some other languages, frameworks and DSLs. Only dipped my toes into SproutCore but it''s certainly an interesting framework and I might pick it up if the right project comes along. However, I''m especially looking forward to Yehuda''s work of abstracting certain parts of SproutCore so I can hook those into existing and new apps (the whole binding MVC part for example). Best regards Peter De Berdt -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 10 January 2011 18:40, Peter De Berdt <peter.de.berdt-LPO8gxj9N8aZIoH1IeqzKA@public.gmane.org> wrote:> > It should be clear by now that gems/plugins for javascript generation are to > be avoided. Not only will it generate ugly inline code in most cases, but > you also lose a lot of control. If you want to use Javascript, then write > Javascript, don''t let some ruby gem write the code for you.It seems to me that this plugin doesn''t generate any javascript code. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Peter De Berdt wrote in post #973735:> On 10 Jan 2011, at 19:14, Marnen Laibow-Koser wrote: > >>> you''ll >>> simply have no other choice than to write proper Javascript (although >>> with Sproutcore that''s quite debatable, but still). >> >> Just out of curiosity: what do you mean by that last remark? (I''ve >> been >> interested in SproutCore but haven''t really played with it yet.) > > Apart from the fact that SproutCore uses ruby generators to generate > its files and compile to a static build not much to be honest, but > there''s always people nitpicking :-) The actual code you write is > still Javascript of course.Right, that makes sense.> > I''m more familiar with ExtJS (using it in production apps) although in > a way I wish I wasn''t. Don''t get me wrong, it certainly has its > merits, but there''s just too much in there that doesn''t gel with me > for some reason. It''s probably just personal preference though, just > like I prefer Ruby and Rails over some other languages, frameworks and > DSLs.Yeah, I looked at ExtJS, and it just seems (from the little I''ve been able to figure out) like the wrong approach, starting right from its distrust of HTML and the resulting insistence on building the whole DOM programmatically (or am I getting that wrong?).> > Only dipped my toes into SproutCore but it''s certainly an interesting > framework and I might pick it up if the right project comes along. > However, I''m especially looking forward to Yehuda''s work of > abstracting certain parts of SproutCore so I can hook those into > existing and new apps (the whole binding MVC part for example).Interesting.> > > Best regards > > Peter De BerdtBest, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Jan 10, 11:40 am, Mauro <mrsan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I''''ve find a lot of errors, for example the method total_entries does > not exists, there isn''t a plugin for rails 3?I''m using this generator in rails 2, it is great. It does require the squirrel plugin, if you look at the generated controller code you should see the squirrel syntax. total_entries looks like it''s defined in paginator.rb -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Jan 10, 2:02 pm, Mauro <mrsan...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> It seems to me that this plugin doesn''t generate any javascript code.It does, the jqgrid() method in your view layer generates it. IMO that''s OK, if you need something customized you can take the generated code and tweak it later, like we do with scaffolds -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 10 Jan 2011, at 20:23, Marnen Laibow-Koser wrote:>> I''m more familiar with ExtJS (using it in production apps) although >> in >> a way I wish I wasn''t. Don''t get me wrong, it certainly has its >> merits, but there''s just too much in there that doesn''t gel with me >> for some reason. It''s probably just personal preference though, just >> like I prefer Ruby and Rails over some other languages, frameworks >> and >> DSLs. > > Yeah, I looked at ExtJS, and it just seems (from the little I''ve been > able to figure out) like the wrong approach, starting right from its > distrust of HTML and the resulting insistence on building the whole > DOM > programmatically (or am I getting that wrong?).Quite a lot of Javascript GUI frameworks build the whole DOM from code, that''s the least of my worries. The main things that bother me about ExtJS: - It''s one huge library, even if you only intend to use one or two components. - It requires quite a bit of configuration except for the most basic setups... to put it mildly, and that for a framework that touts being able to make complex web apps - The built-in components can behave unexpectedly from time to time, e.g. the grouping views - Finding the right method to achieve a certain result is a disaster sometimes or it simply doesn''t exist - The documentation is there, but it still requires a lot of trial-and- error (and console logging) to get the job done That said, there are some pretty powerful and complex UI components in there that would take quite a while to develop from scratch and have no (satisfactory) counterpart (jQuery plugin etc). So if you are on a tight budget or deadline the ExtJS license will be worth the money. Best regards Peter De Berdt -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
2011/1/10 Rodrigo Mendonça <denoww-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>:> it was made in rails 2 but it''s works fine for me on rails 3... i fix some > problems in my migration to rails 3, but it was easy > try this https://github.com/springbok/jqgrid-rails3 > It''s for rails 3Did you know https://github.com/linoj/gridify? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 10 January 2011 18:40, Peter De Berdt <peter.de.berdt-LPO8gxj9N8aZIoH1IeqzKA@public.gmane.org> wrote:> > It should be clear by now that gems/plugins for javascript generation are to > be avoided. Not only will it generate ugly inline code in most cases, but > you also lose a lot of control. If you want to use Javascript, then write > Javascript, don''t let some ruby gem write the code for you.I''m trying using the pure jquery jqgrid. I''ve write the javascript code to display a datagrid, I get the code from jqgrid demos http://trirand.com/blog/jqgrid/jqgrid.html#. Now I have great problem to take data from a rails model. I don''t know how and there isn''t examples. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Msan Msan wrote in post #974414:> On 10 January 2011 18:40, Peter De Berdt <peter.de.berdt-LPO8gxj9N8aZIoH1IeqzKA@public.gmane.org> > wrote: > >> >> It should be clear by now that gems/plugins for javascript generation are to >> be avoided. Not only will it generate ugly inline code in most cases, but >> you also lose a lot of control. If you want to use Javascript, then write >> Javascript, don''t let some ruby gem write the code for you. > > I''m trying using the pure jquery jqgrid. > I''ve write the javascript code to display a datagrid, I get the code > from jqgrid demos http://trirand.com/blog/jqgrid/jqgrid.html#. > Now I have great problem to take data from a rails model. > I don''t know how and there isn''t examples.Have Rails put the data in the DOM. Have the JS read it. Done. Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org Sent from my iPhone -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 13 January 2011 02:39, Marnen Laibow-Koser <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Have Rails put the data in the DOM. Have the JS read it. Done.have you some examples? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Msan Msan wrote in post #974539:> On 13 January 2011 02:39, Marnen Laibow-Koser <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> > wrote: > >> Have Rails put the data in the DOM. Have the JS read it. Done. > > have you some examples?What part don''t you understand? You already know how to have Rails put the data in the DOM. Presumably you already know how to have the JS read it? Or is something else confusing you? Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org Sent from my iPhone -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 13 January 2011 15:07, Marnen Laibow-Koser <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Msan Msan wrote in post #974539: >> On 13 January 2011 02:39, Marnen Laibow-Koser <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> >> wrote: >> >>> Have Rails put the data in the DOM. Have the JS read it. Done. >> >> have you some examples? > > What part don''t you understand? You already know how to have Rails put > the data in the DOM. Presumably you already know how to have the JS > read it? > > Or is something else confusing you?It''s not clear to me how put data in the DOM and how to read. Sorry for my ignorance.> > Best, > -- > Marnen Laibow-Koser > http://www.marnen.org > marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org > > Sent from my iPhone > > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Msan Msan wrote in post #974652:> On 13 January 2011 15:07, Marnen Laibow-Koser <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> > wrote: >> read it? >> >> Or is something else confusing you? > > It''s not clear to me how put data in the DOMYou''ve probably put data in the DOM thousands of times using Rails. The DOM is simply the document represented by the HTML that Rails generates. You already know how to put data in the HTML generated by Rails, right?> and how to read.With any of the myriad JS functions for that purpose (such as Element.innerHTML...)> Sorry for my ignorance.No apology is necessary for ignorance. Apology is only necessary if you''re not using the knowledge you *do* have. :) Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Jan 13, 2011, at 10:27 AM, Mauro wrote:>> Or is something else confusing you? > > It''s not clear to me how put data in the DOM and how to read. > Sorry for my ignorance.Whenever you have Rails create HTML content and serve it to the browser (i.e., pretty much all the time) you are putting that content into the DOM (Document Object Model) of the browser. Now if you place some content above the visible page using CSS, or simply set it to display:none, it will still be in the DOM, but it will be hiding and waiting for you to do something with it subsequently using JavaScript. In Prototype, you most easily access a single HTML element (like a DIV) using the $(''theIdOfTheElement'') shortcut for the native JS getElementById(id) construct. If you want to access a collection of elements that have the same tag name or classname or some other common denominator, you use $$ (''div.foo'') or similar. That gets you an enumerable collection, which you iterate using each(), just like in Ruby. If you want to grab the content of a DIV, or show it from its hidden state, or make it bound around the window like a terrified mountain goat, you can do that once it''s in the DOM. You can also access content from your server using an Ajax call, and either directly replace any element in the page, or use that content as variable data to further modify your page. I believe that jQuery is similar to Prototype in syntax and construction. You may find an easier path to answers by looking up the library documentation on their very glossy site. Walter -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 13 January 2011 17:36, Walter Lee Davis <waltd-HQgmohHLjDZWk0Htik3J/w@public.gmane.org> wrote:> > On Jan 13, 2011, at 10:27 AM, Mauro wrote: > >>> Or is something else confusing you? >> >> It''s not clear to me how put data in the DOM and how to read. >> Sorry for my ignorance. > > > Whenever you have Rails create HTML content and serve it to the browser > (i.e., pretty much all the time) you are putting that content into the DOM > (Document Object Model) of the browser. Now if you place some content above > the visible page using CSS, or simply set it to display:none, it will still > be in the DOM, but it will be hiding and waiting for you to do something > with it subsequently using JavaScript. > > In Prototype, you most easily access a single HTML element (like a DIV) > using the $(''theIdOfTheElement'') shortcut for the native JS > getElementById(id) construct. > > If you want to access a collection of elements that have the same tag name > or classname or some other common denominator, you use $$(''div.foo'') or > similar. That gets you an enumerable collection, which you iterate using > each(), just like in Ruby. > > If you want to grab the content of a DIV, or show it from its hidden state, > or make it bound around the window like a terrified mountain goat, you can > do that once it''s in the DOM. > > You can also access content from your server using an Ajax call, and either > directly replace any element in the page, or use that content as variable > data to further modify your page. > > I believe that jQuery is similar to Prototype in syntax and construction. > You may find an easier path to answers by looking up the library > documentation on their very glossy site.that''s a lot of work, only for using jqgrid. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.