Hello,
I have a code like this:
And in this case alert is executed twice. First time because of initial script rendering and second when window is initialized.
Should it be such case and how to prevent it?
Also I can see this window during the second alert, is it ok that window shows and hides when "visible: false"?
Vladimir
I have a code like this:
<
div
id
=
"wnd1"
>
<
div
>Click me!</
div
>
<
script
type
=
"text/javascript"
>alert('executed 1');</
script
>
</
div
>
<
script
type
=
"text/javascript"
>
(function ($) {
$("#wnd1").kendoWindow({
height: "500px",
width: "400px",
modal: true,
draggable: true,
resizable: false,
visible: false
});
})(jQuery);
</
script
>
And in this case alert is executed twice. First time because of initial script rendering and second when window is initialized.
Should it be such case and how to prevent it?
Also I can see this window during the second alert, is it ok that window shows and hides when "visible: false"?
Vladimir