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¶m2=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
Post a Comment