iframe

0 views
Skip to first unread message

Pavel Kaygorodov

unread,
Jan 31, 2010, 11:59:25 AM1/31/10
to Nagare users
Hi!

Is it possible to create iframe with dynamic content in nagare?

Pavel.

apoirier

unread,
Feb 1, 2010, 2:00:34 PM2/1/10
to Nagare users
Hi Pavel,

On 31 jan, 17:59, Pavel Kaygorodov <pavel.kaygoro...@gmail.com> wrote:
> Hi!
>
> Is it possible to create iframe with dynamic content in nagare?

If you want to access an external page in an iframe, simply do:

h << h.iframe(src="http://www.google.com", width="100%",
height="300")


If you want to access an other Nagare application in an iframe, the
simplest way I see is to use the capability of Nagare to serve
multiple applications:

- In a view of your `foo` application, add an iframe on the `bar`
application:

h << h.iframe(src="/bar/", width="100%", height="300")

- Serve the applications `foo` and `bar` together:

nagare-admin serve foo bar

Alain

Reply all
Reply to author
Forward
0 new messages