On Aug 16, 2:43 am, 刘子嘉 <xxmikl.m...@gmail.com> 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
--~--~---------~--~----~------------~-------~--~----~
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@googlegroups.com
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to