Max Williams
2007-Jul-17 14:04 UTC
Displaying an existing web page within one of my rails pages
Does anyone know how to, given the url, display another web page inside one of my own pages in rails? I want to basically show the whole page and then have my own extra stuff at the bottom, after it. -- 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 -~----------~----~----~----~------~----~------~--~---
Nathan Garza
2007-Jul-17 16:00 UTC
Re: Displaying an existing web page within one of my rails pages
You could use and iframe. Your use it like this: <iframe src="http://uri.for.existing.page"></iframe> <!-- Your own code would go down here --> iframe''s have several other atributes other than src. You can specify scrolling, width, hieght, border, etc. w3schools.com is a good resource. Good luck nathan On 7/17/07, Max Williams <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > > Does anyone know how to, given the url, display another web page inside > one of my own pages in rails? I want to basically show the whole page > and then have my own extra stuff at the bottom, after it. > > -- > Posted via http://www.ruby-forum.com/. > > > >-- Nathan Garza AshLeaf Media | Director of Technology Innovations _________________________________________________ www.ashleafmedia.com | nathan-8gggxoBvU1PsBN0MCq728g@public.gmane.org | 832.514.5726 --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Max Williams
2007-Jul-17 19:30 UTC
Re: Displaying an existing web page within one of my rails p
Nathan Garza wrote:> You could use and iframe. Your use it like this: > <iframe src="http://uri.for.existing.page"></iframe> > <!-- Your own code would go down here --> > > iframe''s have several other atributes other than src. You can specify > scrolling, width, hieght, border, etc. w3schools.com is a good > resource. > > Good luck > > nathan > > On 7/17/07, Max Williams <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: >> > -- > > Nathan Garza > > AshLeaf Media | Director of Technology Innovations > _________________________________________________ > www.ashleafmedia.com | nathan-8gggxoBvU1PsBN0MCq728g@public.gmane.org | 832.514.5726That''s exactly what i needed, thanks! I solved the problem in a not very satisfactory way by pulling all the html out and then just shoving it into my page, but the layout was often broken. This is perfect. :) -- 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 -~----------~----~----~----~------~----~------~--~---
Here''s an alternative method using iframes. Haven''t used it myself. Description: Want to dynamically include the contents of another page onto the current without resorting to server side means (ie: server side includes)? This script uses the IFRAME tag, and by automatically resizing it based on the actual height of the containing page, allows you to seamlessly display external content on your page. In other words, the iframe is automatically resized to be only as tall as the external page''s height. The script works in both IE5+ and NS6+, and for other browsers, supports the option to either completely hide the iframe in question or display it using its default height. Now that''s SSI DHTML style! Note that as with SSI, the external page referenced by the iframe must be from the same domain as the page the iframe tag is inserted in. Setting the iframe''s src to an external site such as "http:// www.google.com" will not work, since the script cannot probe and detect the height of pages from external domains. Iframe SSI script http://www.dynamicdrive.com/dynamicindex17/iframessi.htm On Jul 17, 3:30 pm, Max Williams <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Nathan Garza wrote: > > You could use and iframe. Your use it like this: > > <iframe src="http://uri.for.existing.page"></iframe> > > <!-- Your own code would go down here --> > > > iframe''s have several other atributes other than src. You can specify > > scrolling, width, hieght, border, etc. w3schools.com is a good > > resource. > > > Good luck > > > nathan > > > On 7/17/07, Max Williams <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: > > > -- > > > Nathan Garza > > > AshLeaf Media | Director of Technology Innovations > > _________________________________________________ > >www.ashleafmedia.com| nat...-8gggxoBvU1PsBN0MCq728g@public.gmane.org | 832.514.5726 > > That''s exactly what i needed, thanks! I solved the problem in a not > very satisfactory way by pulling all the html out and then just shoving > it into my page, but the layout was often broken. This is perfect. :) > > -- > Posted viahttp://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 -~----------~----~----~----~------~----~------~--~---
Max Williams
2007-Jul-18 08:10 UTC
Re: Displaying an existing web page within one of my rails p
> > Note that as with SSI, the external page referenced by the iframe must > be from the same domain as the page the iframe tag is inserted in. > Setting the iframe''s src to an external site such as "http:// > www.google.com" will not work, since the script cannot probe and > detect the height of pages from external domains. >That sounds interesting but the "has to be in the same domain" limitation makes it no good for me. Thanks a lot though. -- 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 -~----------~----~----~----~------~----~------~--~---