when using EJS,I have to write in the controller like this: ... Render :update do |page| Page.xxxxx End ..... I want to know if there is a method "xxxxx" to close the current window,if not ,how can I close the current window with EJS? Thanks --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Sorry...a mistake,I was saying ".....close the current window without EJS" 2009 年 8 16 日 9:41 AM在 "刘子嘉" <xxmikl.mexx@gmail.com> 提到: when using EJS,I have to write in the controller like this: ... Render :update do |page| Page.xxxxx End ..... I want to know if there is a method "xxxxx" to close the current window,if not ,how can I close the current window with EJS? Thanks --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@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 Aug 16, 2:43 am, 刘子嘉 <xxmikl.m...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Sorry...a mistake,I was saying ".....close the current window without EJS" > > 2009 年 8 16 日 9:41 AM在 "刘子嘉" <xxmikl.m...@gmail.com> 提到: > > when using EJS,I have to write in the controller like this: > ... > Render :update do |page| > Page.xxxxx > End > ..... > I want to know if there is a method "xxxxx" to close the current window,if > not ,how can I close the current window with EJS?You can use << to execute arbitrary javascript. Fred> Thanks