Heya all, There''s some new stuff in the script.aculo.us trunk as of today that needs to be tested, so maybe give it a shot: * Added Ajax.InPlaceCollectionEditor which uses a SELECT element instead of a text field (see test/functional/ ajax_inplacecollectioneditor_test.html for usage), #3491 [thx anna] * Enable in place editor to use RJS (implements a new evalScripts option for the in place editor), #3490 [thx Richard Livsey] * Added Sortable.setSequence to programmatically reorder a Sortable, #3711 [thx Mike A. Owens] Cheers, Thomas
On Tuesday, February 21, 2006, at 12:41 PM, Thomas Fuchs wrote:>* Enable in place editor to use RJS (implements a new evalScripts >option for the in place editor), #3490 [thx Richard Livsey] >I''ve been stuck on this all day. Can anyone give me an example of evalScripts option in the context of an in_place_editor_field? -- Posted with http://DevLists.com. Sign up and save your time!
Hi, what is the best practice for adding elements into the DOM. InnerHTML? Does prototype provide a better or enhanced way? Thanks!
when starting a new thread, please do not reply to an existing post, remove all of the content including the subject, and type out your new request. Messages posted this way break the list archives and mail clients that support threading. Instead, please use your MUA''s ''new'' function. That being said: On Wednesday 15 March 2006 14:05, Daniel Elmore wrote:> Hi, what is the best practice for adding elements into the DOM. InnerHTML? > Does prototype provide a better or enhanced way?it depends on how you''re attempting to add them. If you''re taking the responseText from an XHR call and want to throw that into the DOM, then I''d recommend using innerHTML. If you''re trying to build some elements from scratch using javascript, I''d use the DOM manipulation methods provided by javascript. Scriptaculous also includes a neat feature called the ''builder'' which I believe aids in creating complex DOM trees. -Jeremy -- Jeremy Kitchen ++ kitchen-RA8HwDor7flnDGu+y90WmgC/G2K4zDHf@public.gmane.org In the beginning was The Word and The Word was Content-type: text/plain -- The Word of Bob. _______________________________________________ Rails-spinoffs mailing list Rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs
Sorry Jeremy, I''ll try to remember that. Thanks for your help! -----Original Message----- From: rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-spinoffs-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of Jeremy Kitchen Sent: Wednesday, March 15, 2006 4:12 PM To: rails-spinoffs-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: Re: [Rails-spinoffs] Adding Elements into the DOM when starting a new thread, please do not reply to an existing post, remove all of the content including the subject, and type out your new request. Messages posted this way break the list archives and mail clients that support threading. Instead, please use your MUA''s ''new'' function. That being said: On Wednesday 15 March 2006 14:05, Daniel Elmore wrote:> Hi, what is the best practice for adding elements into the DOM. InnerHTML? > Does prototype provide a better or enhanced way?it depends on how you''re attempting to add them. If you''re taking the responseText from an XHR call and want to throw that into the DOM, then I''d recommend using innerHTML. If you''re trying to build some elements from scratch using javascript, I''d use the DOM manipulation methods provided by javascript. Scriptaculous also includes a neat feature called the ''builder'' which I believe aids in creating complex DOM trees. -Jeremy -- Jeremy Kitchen ++ kitchen-RA8HwDor7flnDGu+y90WmgC/G2K4zDHf@public.gmane.org In the beginning was The Word and The Word was Content-type: text/plain -- The Word of Bob.