or
$("#window").kendoWindow({
actions: ["Custom", "Minimize", "Maximize", "Close"],
title: "Window Title"
}).data("kendoWindow").wrapper.find(".k-custom").click(function(e) {
alert("Custom action button clicked");
e.preventDefault();
});
function popStateHandler(e) {
var State = e.state;
if (State != null) {
console.log(State);
switch (State.stateTitle) {
case "Landing Page":
console.log('transitioning to landing page ...');
// show the content div and hide the hide the login panel
//
Transitions.PrimaryElementTransitions.HideLoginPanel();
break;
default:
break;
} // end switch ...
} else if (window.processingLogin == true) {
console.log('Processing login flag is true.');
window.ProcessingLogin = false;
} else {
console.log('transitioning to login state ...');
// show the login panel and hide the content div
//
Transitions.PrimaryElementTransitions.ShowLoginPanel();
}
}
// Attach the window.history popstate event handler defined above.
//
window.addEventListener("popstate", popStateHandler, false); // end function definition and addEventListener method invocation ...
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?