Tidied bookmarklet

1 view
Skip to first unread message

Ant

unread,
Mar 31, 2009, 8:14:27 PM3/31/09
to tarpipe
This version of Guillaume's REST bookmarklet tidies up the form by
putting it in a table.
Paste the following into the location field of a bookmark and replace
the PUT YOUR KEY HERE with the key from the workflow.


javascript:k='PUT YOUR KEY HERE';
n=window.open('','mywindow','width=600, height=180, resizable=yes,
scrollbars=yes, menubar=yes, location=no, status=no');
n.focus();
n.moveTo(400,400);
d=n.document;
d.write('<form action="http://rest.receptor.tarpipe.net:8000/?key='+k
+'" method="POST" enctype="multipart/form-data">');
d.write('<table border="1" bgcolor=#FFC0FF>');
d.write('<caption><em>Text entered will be sent to Twitter and
Facebook</em></caption>');
d.write('<tr><td>title</td><td>');
d.write('<input type="text" size="72" name="title" maxlength="140"/
>');
d.write('</td></tr>');
d.write('<tr><td>body</td><td>');
d.write('<input type="text" size="72" name="body"/>');
d.write('</td></tr>');
d.write('<tr><td>url</td><td>');
d.write('<input type="text" size="72" name="url"/>');
d.write('</td></tr>');
d.write('<tr><td>');
d.write('<input type="submit" name="Submit" value="Send"/>');
d.write('</td></tr></table>');
d.write('</form>');
Reply all
Reply to author
Forward
0 new messages