This is a migrated thread and some comments may be shown as answers.

Question about iframe

4 Answers 246 Views
Window
This is a migrated thread and some comments may be shown as answers.
Arni
Top achievements
Rank 1
Arni asked on 04 Jan 2012, 08:26 PM
// line 822
if (options.content && !isLocalUrl(options.content)) {
            contentHtml.html(templates.iframe(options));
        }

I think it's worth to give the programmer to decide on the insertiframe. It may be helpful:)

4 Answers, 1 is accepted

Sort by
0
Brian Vallelunga
Top achievements
Rank 1
answered on 14 Jan 2012, 01:08 AM
I also need control over the use of an iframe. Also, the docs mention contentUrl instead of content. Are they just out of date? contentUrl doesn't seem to work at all.
0
Alex Gyoshev
Telerik team
answered on 16 Jan 2012, 08:32 AM
There is an iframe configuration property that allows you to configure that, prepared for the service pack.

The docs will be updated shortly, the most recent ones are on demos.kendoui.com.

Kind regards,
Alex Gyoshev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Brian Vallelunga
Top achievements
Rank 1
answered on 17 Jan 2012, 06:12 PM
A follow-up, how do I set the window's iframe URL after a window has been created? For example, I have a grid of data and when I click on a single row, I want a window to appear that points to a different URL for each row. It seems silly to create a new window each time, so I'd like to reuse a single window and simply change the contents.
0
Alex Gyoshev
Telerik team
answered on 18 Jan 2012, 09:11 AM
window.find("iframe")[0].src = "http://google.com";

In the service pack and upcoming release, this can be achieved through the refresh() method, windowObject.refresh("http://google.com");

All the best,
Alex Gyoshev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Window
Asked by
Arni
Top achievements
Rank 1
Answers by
Brian Vallelunga
Top achievements
Rank 1
Alex Gyoshev
Telerik team
Share this question
or