gevent_cometd / gevent_cometd / static / multi.html

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<script
    src="http://ajax.googleapis.com/ajax/libs/dojo/1.6.1/dojo/dojo.xd.js"
    type="text/javascript"></script>
<body>

<style type="text/css">
.iframe{
width: 45%;
height: 33%;
border:1px solid;
margin:5px;
}

</style>

<iframe class="iframe" src="/static/iframe_demo.html"></iframe>
<iframe class="iframe" src="/static/iframe_demo.html"></iframe>
<iframe class="iframe" src="/static/iframe_demo.html"></iframe>
<iframe class="iframe" src="/static/iframe_demo.html"></iframe>

<form action="/message?secret=secret" id="msg_form" method="post">
<p>
Public channel<input type="radio" name="channel" value="pub_chan" checked="checked">
Alt. Public channel<input type="radio" name="channel" value="pub_chan2">
</p>
<p>
user <input type="text" name="user" value="User">
</p>
<p>
<textarea name="message" style="width:300px"></textarea>
</p>
<p>
<input type="submit" value="send message">
</p>
</form>

<script type="text/javascript">
dojo.addOnLoad(function() {
    var form = dojo.byId("msg_form");
    dojo.connect(form, "onsubmit", function(event) {
        dojo.stopEvent(event);
        var req = dojo.formToObject(form);
        var xhrArgs = {
            url : form.action,
            postData: dojo.toJson(req, true),
            handleAs : "text",
            load : function(data) {
            },
            error : function(error) {
                console.log(error);
            }
        }
        dojo.query('textarea[name=message]')[0].value = '';
        var deferred = dojo.xhrPost(xhrArgs);
    });
});
</script>

</body>
</html>
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.