[REBOL] Re: Rebol Plugin script
From: inetw3:mindspring at: 20-Dec-2002 19:51
Thanks Alan for feedback,
> ><html>
> ><head>
> ><title>
> >
> ><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>
> >
> ></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.