Template:SendMessageUser

    Table of contents
    No headers
        <div id="timeline-add-response" init="var username = $0 ?? $username ?? user.name;">
            // includes
            dekiapi();
            jquery.ui('smoothness');
    
            // input form
            <form>
                "Envíame un mensaje: ";
                <br /><textarea id="todowhat" type="text" style="width:60%;height:50px;"></textarea><br />
                <input type="hidden" id="todowho" value="(username)" />
                <input id="todoadd" type="button" value="Enviar" 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>
        </div>
    Tag page (Edit tags)
    • No tags
    Page statistics
    111 view(s), 9 edit(s) and 1197 character(s)

    Comments

    You must login to post a comment.

    Attach file

    Attachments