Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Rebol Plugin script

From: inetw3:mindspring at: 19-Dec-2002 22:43

Hello ML, Rebol Plugin script put this in a webpage: ====================== <SCRIPT> function Rquery() { window.clipboardData.setData('Text', event.srcElement.innerHTML); } function read() { r=document.all.RData.createTextRange(); r.execCommand("paste"); } </SCRIPT> <FORM action="plugin.r" onmouseenter="Rquery()"> <TEXTAREA NAME="writesData" ROWS="1" COLS="5" >rebol[] main: layout [backcolor red Title "Hello World" green black] view main </TEXTAREA> <INPUT TYPE="submit" VALUE="Go Rebol"></FORM> <br> <input id=readsData rows="1" cols="1" NAME="RData" READONLY="TRUE" style="border:none;toolbar:none;visibility:hidden;"></input> name and save a blank file, %plugin.r in your view folder. (this file will be exchanged for an encaped one at a later date.) put this in your %user.r file ========================== this: does [read clipboard:// ] if find/case this "rebol" [do this] clear clipboard:// click the "Go Rebol" button on the web page. Let me know if this works, i'm trying to find out if IE file download runs automaticly, or why it asks to open or save.