Hi! If this.EditorValor is an InPlaceEditor, how can I change the ajaxOptions.onComplete? I try: this.EditorValor.options.ajaxOptions.onComplete = function() { alert(''Hello''); } but the alert doesn''t fire I change: this.EditorValor.getText and works ok Which is the correct path to override the ajax onComplete? Thanks! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Did you try.... new Ajax.InPlaceEditor( element, url, {onComplete:function() {alert(''hello'')}} ) On 3/16/08, Garito <garito-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Hi! > If this.EditorValor is an InPlaceEditor, how can I change the > ajaxOptions.onComplete? > I try: > > this.EditorValor.options.ajaxOptions.onComplete = function() > { alert(''Hello''); } > > but the alert doesn''t fire > > I change: > > this.EditorValor.getText and works ok > > Which is the correct path to override the ajax onComplete? > > Thanks! > > >--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Sure, but this controls when the edition finishes and the response is viewed But what I want is to process the server response before render it on HTML What I want is to convert a Zope list (with \n as element separator) to a list of <li>''s Thanks! On 17 mar, 05:00, "Andrew Kaspick" <akasp...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Did you try.... > new Ajax.InPlaceEditor( element, url, {onComplete:function() {alert(''hello'')}} ) > > On 3/16/08, Garito <gar...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > > > Hi! > > If this.EditorValor is an InPlaceEditor, how can I change the > > ajaxOptions.onComplete? > > I try: > > > this.EditorValor.options.ajaxOptions.onComplete = function() > > { alert(''Hello''); } > > > but the alert doesn''t fire > > > I change: > > > this.EditorValor.getText and works ok > > > Which is the correct path to override the ajax onComplete? > > > Thanks!--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
On Mon, Mar 17, 2008 at 9:30 AM, Garito <garito-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> What I want is to convert a Zope list (with \n as element separator) > to a list of <li>''sWhy not just turn evalScripts on and then do all the work of building up a chunk of JavaScript to execute on the server? That way you could update arbitrary content on the page by only changing server-side code. -justin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Hi, Justin! I think about this, yes, but IPE has no sense if I choose this aproach, don''t you think so? If I choose the server side aproach I prefer to generate the editor in the server side too and then we can send IPE to the trash and make scriptaculous lighter Thanks! On 17 mar, 18:21, "Justin Perkins" <justinperk...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Mon, Mar 17, 2008 at 9:30 AM, Garito <gar...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > What I want is to convert a Zope list (with \n as element separator) > > to a list of <li>''s > > Why not just turn evalScripts on and then do all the work of building > up a chunk of JavaScript to execute on the server? That way you could > update arbitrary content on the page by only changing server-side > code. > > -justin--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
On Mon, Mar 17, 2008 at 12:53 PM, Garito <garito-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, Justin! > I think about this, yes, but IPE has no sense if I choose this > aproach, don''t you think so?I don''t think so, but it''s a personal preference. I much prefer to always have evalScripts turned on so that I have much greater control over the page. -justin --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Some weeks ago Christophe answers IPE''s questions but I don''t read him from this weeks until now I respect your point of view but I have my own: Server side imply docked code and client side no At some point at the future I would like to upload a version of <a href="code.google.com/p/zsm">Zope Smart Manager</a> but without Zope (you will can use the tree view in any kind of server) At this point ZSM uses JSON and nothing else and server side process imply send client side code that I don''t like for this purpose At least, thank you so much On 17 mar, 19:25, "Justin Perkins" <justinperk...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Mon, Mar 17, 2008 at 12:53 PM, Garito <gar...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Hi, Justin! > > I think about this, yes, but IPE has no sense if I choose this > > aproach, don''t you think so? > > I don''t think so, but it''s a personal preference. I much prefer to > always have evalScripts turned on so that I have much greater control > over the page. > > -justin--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---
Forget this threat! Thanks On Mar 17, 7:59 pm, Garito <gar...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Some weeks ago Christophe answers IPE''s questions but I don''t read him > from this weeks until now > I respect your point of view but I have my own: > > Server side imply docked code and client side no > At some point at the future I would like to upload a version of <a > href="code.google.com/p/zsm">Zope Smart Manager</a> but without Zope > (you will can use the tree view in any kind of server) > > At this point ZSM uses JSON and nothing else and server side process > imply send client side code that I don''t like for this purpose > > At least, thank you so much > > On 17 mar, 19:25, "Justin Perkins" <justinperk...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > On Mon, Mar 17, 2008 at 12:53 PM, Garito <gar...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Hi, Justin! > > > I think about this, yes, but IPE has no sense if I choose this > > > aproach, don''t you think so? > > > I don''t think so, but it''s a personal preference. I much prefer to > > always have evalScripts turned on so that I have much greater control > > over the page. > > > -justin--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoffs" group. To post to this group, send email to rubyonrails-spinoffs-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-spinoffs-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-spinoffs?hl=en -~----------~----~----~----~------~----~------~--~---