Hi there I''m relatively new to rails (and web development). I want to insert a video into my site which can keep playing even when the user is browsing between pages. Should i do this with Frames or iFrames? I tried to implement it using frames but got a little stuck... My site has the welcome (home) page which contains no frames: www.mysite.com (www.mysite.com/home/index). Then there is the page to display once someone has logged in: www.mysite.com/projects/list All pages except the home page use the application.html.erb layout. I''m not sure how to integrate the frames html when I am using the application layout. Any help would be really appreciated. Thanks Tim -- 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 -~----------~----~----~----~------~----~------~--~---
On Mon, Jul 28, 2008 at 4:34 PM, Tim Clark <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> I''m not sure how to integrate the frames html when I am using the > application layout.Use another layout. -- Greg Donald http://destiney.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 -~----------~----~----~----~------~----~------~--~---
Regardless of what I call the layout file, I still dont know how to make this work. I was thinking of making my application.html.erb something like this: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="content-type" content="text/html;charset=UTF-8" /> <title>Title</title> <%= stylesheet_link_tag ''style'' %> <%= javascript_include_tag :defaults %> </head> <FRAMESET cols="900, *"> <FRAME src="/user/login"> </FRAME> <FRAME src="video.html.erb???"> </FRAME> </FRAMESET> </html> Unfortunately this is just rendering a blank frame. I have a whole bunch of other stuff I need to include like headers and footers which also previously went in application.html.erb, but I am unsure where to put that code now. How do I still include them? Thanks Tim -- 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 -~----------~----~----~----~------~----~------~--~---
Also, is frames even the best way to do this?? I did a little test and it seems the URL will not change as I browse through my site when I am using frames. It will only keep original page with the frameset in the URL bar rather than the URL of the individual active frame. Surely there is a better way of doing this? -- 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 -~----------~----~----~----~------~----~------~--~---