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

embed a script in a webpage?

 [1/3] from: balayo:mindspring at: 29-Dec-2000 15:25


hey guys, I've known for some time that you can embed a rebol script in a web page, but I can't figure out why I would want to. Why would I want to? a simple "view source" in a browser would give away its presence, and then anyone could run my script. If there is a safe way to do this, that actually does something, it might be fun... -- Eat more spinach. -tom

 [2/3] from: al::bri::xtra::co::nz at: 31-Dec-2000 6:51


tom wrote:
> I've known for some time that you can embed a rebol script in a web page,
but I can't figure out why I would want to.
> Why would I want to? > > a simple "view source" in a browser would give away its presence, and then
anyone could run my script. Here's some examples: * Documentation. A HTML compatible version with a Rebol embedded script. So one HTML file contains the documentation and the script itself. * Statically generated web pages. One could write a document processor that reads the page, executes the Rebol script and replaces the Rebol script with it's result, so being able to customise HTML pages, for example only writing common HTML once and once only. Andrew Martin ICQ: 26227169 http://members.nbci.com/AndrewMartin/

 [3/3] from: dmurrill:mindspring at: 29-Dec-2000 23:29


Hello, ----- Original Message ----- From: <[balayo--mindspring--com]> To: <[rebol-list--rebol--com]> Sent: Friday, December 29, 2000 8:25 AM Subject: [REBOL] embed a script in a webpage?
> hey guys, > > I've known for some time that you can embed a rebol script in a > web page, but I can't figure out why I would want to. > > Why would I want to?
Yes, there is some importants. I want to use it to point to Rebol--XML files and bind them to the clients page, you see, Rebol Server Pages. One question though, does the script have to be on a http server, or can it be in a shared file or Rebol server.
> a simple "view source" in a browser would give away its > presence, and then (anyone) could run my script.
---(anyone) doesn't have rebol. most scripts can be seen in browsers anyway.
> If there is a safe way to do this, that actually does > something, it might be fun...
yes, i hope to do it through pop3, the script isn't even on the page, so i'll just have to bind it back to the browser in XML.