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

Window data acess in iframe

0 Answers 84 Views
Window
This is a migrated thread and some comments may be shown as answers.
Fabricio
Top achievements
Rank 1
Fabricio asked on 22 Aug 2012, 08:10 PM

I have the frame structure below:

<frameset rows="*" frameborder="NO" framespacing="0" border="0">
<frame src="principal.aspx" id="main">
</ frameset>

principal.aspx

<script>
var window = $ ("#window"). kendoWindow ({
         width: "50%"
         height: "50%"
         modal: true,
         visible: false,
         actions: ["Refresh", "Maximize", "Close"]
     }). date ("kendoWindow");
</ script>

<iframe SRC="URL" id="frmConteudo"> </ iframe>
<div id="window"> </ div>

Now I have the problem. I'm inside the frmConteudo and want to access the div window. I can access the div window without problems this way:

$ ("#window", frames["main"].document)

However the need to access. Date ("kendoWindow") and the same is void of the two forms below:

var frame = frames["main"].document;
$
("#window", frame).data("kendoWindow");
$
("#window", frame).data(frame, "kendoWindow");

Any idea?

No answers yet. Maybe you can help?

Tags
Window
Asked by
Fabricio
Top achievements
Rank 1
Share this question
or