JavaScript Notification

Set the appendContainer property of the jqxNotification. Author: http://jqwidgets.com

HTML

<script src="http://jqwidgets.com/public/jqwidgets/jqx-all.js"></script>
<link rel="stylesheet" href="http://jqwidgets.com/public/jqwidgets/styles/jqx.base.css">
<link rel="stylesheet" href="http://jqwidgets.com/public/jqwidgets/styles/jqx.energyblue.css">
<div id="mainSplitter">
    <div class="splitter-panel">
        <button id="checkMail">
Check mail
</button>
        <div style="margin-top: 15px;">
            Events log:
        </div>
        <div id="eventsPanel">
        </div>
        <div id="messageContent">
        </div>
    </div>
    <div class="splitter-panel">
        <div id="jqxNotification">
            <div id="notificationContent">
            </div>
        </div>
        <div id="container" style="width: 100%; height: 100%; background-color: #F2F2F2; border: 1px dashed #AAAAAA; overflow: auto;">
        </div>
    </div>
</div>

JavaScript

$(document).ready(function() {
   $("#mainSplitter").jqxSplitter({
                    theme: "darkblue",
                    width: 1330,
                    height: 600,
                    panels: [{
                        size: 482
                    }]
                });
                $("#jqxNotification").jqxNotification({
                    theme: "darkblue",
                    width: "100 %",
                    appendContainer: "#container",
                    opacity: 0.9,
                    closeOnClick: true,
                    autoClose: false,
                    showCloseButton: true,
                    template: "error",
                    blink: true
                });
                //	<div id="jqxNotification" style="width: 100%;"><div>CUDB System <b>Error</b></div><div style="font-size: smaller; text-align: center;">Click to view.</div></div>
                $("#checkMail").jqxButton();
                $("#eventsPanel").jqxPanel({
                    theme: "darkblue",
                    width: 150,
                    height: 150
                });
                var jsonranklist = ['{"command_name":"cudb_system","status":"ok","output":"sdafasdfasdfdasfs"}', '{"command_name":"cudb_monitor","status":"ok","output":"sdafasdfasdfdasfs"}', '{"command_name":"cudb_abc","status":"ok","output":"sdafasdfasdfdasfs"}'];
                obj = JSON.parse(jsonranklist[0]);
                $("#checkMail").click(function () {
                    for (var i = 0; i < jsonranklist.length; i++) {
                        var obj;
                        obj = JSON.parse(jsonranklist[i]);
                        $("#notificationContent").html(obj.command_name);
                        //    alert(i);
                        $("#jqxNotification").jqxNotification("open", {
                            notificationOffset: i
                        });
                    }
                   ...