Template:SendMessage

    Table of contents
    No headers
    // includes
    dekiapi();
    jquery.ui('smoothness');
    
    // input form
    <form>
        "What: "; <input id="todowhat" type="text" />
        " Who: ";
        <select id="todowho">
            foreach(var u in site.users where !u.anonymous) {
                <option value=(u.name) selected=((u.id == user.id) ? 'selected' : nil)>u.name</option>
            }
        </select>
        <input id="todoadd" type="button" value="Send" ctor="
            when($this.click) {
                @todosend({ entry: { what: #todowhat.val(), who: #todowho.val()}});
                #todowhat.val('');
                #todoadd.val('Send');
                #todoadd.blur();
            }
            when(@todosend) {
                Deki.Api.PostMessage(null, 'activity/poke', 
                    '@'+ @todosend.entry.who+': '+ @todosend.entry.what );
            }
        " />
    </form>
    Tag page (Edit tags)
    • No tags
    Page statistics
    133 view(s), 5 edit(s) and 957 character(s)

    Comments

    You must login to post a comment.

    Attach file

    Attachments