design - Rails + iframe: Rendering another website in your rails application -


i render website in rails application. html tag < iframe> seems want. wondering how make smooth possible. need make new model? how pass parameters website render?

thanks

if use iframe, you'll have minimal control of page render. can pick url, , pass params takes appending them url itself. requiring login / cookies / etc. need done user - can't set cookies other sites, obvious security reasons.

<iframe src="http://www.othersite.com/some/path?param1=value1&param2=value2">     <p>placeholder text; shows if page doesn't render!</p> </iframe> 

that's simple example, covers iframes can you. if that's need, perfect, if not, you're going have more complex.

hope helps!


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -