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

Rebol Plugin script

 [1/4] 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.

 [2/4] from: inetw3:mindspring at: 20-Dec-2002 19:51


Thanks Alan for feedback,
> ><html> > ><head>
<<quoted lines omitted: 32>>
> ></title> > ></head>
Make sure the <form> code is in the <body></body> part of the page.
> >is it suppose to write a file to view/console or view/plugin.r ?
It should show the Rebol/view code in the view/console ontop of the web page. The purpose of this code is to run Rebol code embedded in the web page without CGI. This only works with IE or apps built with the IE component. If your IE browser is set up to open and execute Rebol files with Rebol.exe, you'll see a file-download box popup, and then the VID GUI code popup. Let me know if that works please. I'm trying to find the easiest way to make my plugin code run for others with Rebol.

 [3/4] from: nitsch-lists:netcologne at: 21-Dec-2002 7:50


iNetW3 wrote:
>Hello ML, >Rebol Plugin script >put this in a webpage: >
[snip]
>put this in your %user.r file >========================== >this: does [read clipboard:// ] >if find/case this "rebol" [do this] >clear clipboard:// >
and add a probe secure query get [net allow library allow shell allow file allow] and remember: never put untrusted code in your %user.r !

 [4/4] from: nitsch-lists::netcologne::de at: 21-Dec-2002 7:49


iNetW3 wrote:
>Hello ML, >Rebol Plugin script >put this in a webpage: >
[snip]
>put this in your %user.r file >>this: does [read clipboard:// ] >if find/case this "rebol" [do this] >clear clipboard:// >
and add a probesecure query get [net allow library allow shell allow file allow] and remember: never put untrusted code in your %user.r !

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted