First, I''m *very* new in rails, i''m loving it and didn''t encounter any problems in the simple tasks i''m doing yet. What I''d like to do is to open a new window containing the info of a Model (something like the show scaffold method) with a simple "close" link to close the window. Can someone please give me some directions? thanks in advance. Santiago -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060117/3bced11d/attachment.html
On 16 Jan ''06, at 9:54 PM, Santiago Hirschfeld wrote:> What I''d like to do is to open a new window containing the info of > a Model (something like the show scaffold method)In HTML, you use a link whose target is ''_new'': <a href="......" target="_new"> In a Rails app you would use the HTML options hash of the link_to method to set :target=>''_new''.> with a simple "close" link to close the window.Every window already comes with a standard "close" button at the top. I''ve never understood why some web sites feel they need to add a special link to help the user out. But if you really want to do it, you''ll need a bit of JavaScript to close the current window, then make a link whose href is "javascript:" followed by the script. --Jens
Jens Alfke wrote:> On 16 Jan ''06, at 9:54 PM, Santiago Hirschfeld wrote: >> > But if you really want to do it, you''ll need a bit of JavaScript to > close the current window, then make a link whose href is > "javascript:" followed by the script. > > --JensHi, I am new to RoR I want to show a new window but as a popup window that should not be shown on the taskbar, Please help me.........You can reply me on my e-mail. Regards, Kiran Polawar, PolawarKiranD-Re5JQEeQqe8AvxtiuMwx3w@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-/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 -~----------~----~----~----~------~----~------~--~---