Hi Rodrigo,

I don't know exactly what you are needing but the
Rebol/plug-in can be used to retrieve data from
the web-page and based on your rebol script, it
can be processed as needed.

There are many ways to do this and without CGI
scripts.  But what the Rebol/Plugin brings is the
ability to act as a full blown webpage server.

Remember the plugin is limited to IE-Mozilla-Firefox,
and there is no limit to what this plugin can achieve
or do to or from a single webpage. (security issue)

The trick is you must use javascript with XML-DOM (DHTML)
or the .innerHTML (easier) functions to get the page's data.
Look at the Rebol/Plugin webpage for an idea how to do this.

Put this javascript in your rebol script and the rebol script
in the rebol/plug-in code.  When the plug-in loads, have the
javascript part inserted into the webpage.

How?

Give each webpage a "<script>" tag with an ID name. ie..
<script id="update"></script>,  and this is where you want
the rebol/plug-in to put the javascript.

You can read or write to the page or anywhere else that you
need the returned data to go to.

How do i get Rebol to respond to get new data from the page?
Just like a form has a submit button, you can make the Rebol/
plugin viewable as a button with text that says something like
"update/retrieve data". just and idea.

Another way is to just have regular javascript code in your page
write all your needed info into the DOM, (Document object model)
and then use a Rebol script (maybe quickparser.r at Rebol.org? )
in the plugin to parse the needed data right out of the page and do
with it as you please.


----- Original Message -----
From: "Rodrigo de Oliveira" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 31, 2005 4:08 PM
Subject: [REBOL] Re: Can REBOL change HTML of a web page?


>
> Hi Anton,
>
> Thanks a lot! I found this AJAX and Chris' dissection of Google Suggest
very
> interesting. I don't know yet if that's going to solve my problem because
I
> need to intercept the server responses and make the adjustments locally
> WITHOUT changing the original web pages. But I will certainly give this a
> try. If that works, I'll tell you.
>
> Thanks.
>
> Rodrigo
>
> ----- Original Message -----
> From: "Anton Rolls" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, March 31, 2005 11:17 AM
> Subject: [REBOL] Re: Can REBOL change HTML of a web page?
>
>
> >
> > This looks like it - AJAX ("Asynchronous JavaScript + XML"):
> >
> > http://www.adaptivepath.com/publications/essays/archives/000385.php
> >
> > (link found by Graham Chiu, thanks)
> >
> > Anton.
> >
> >> Hi Rodrigo,
> >>
> >> This is an interesting question and one that
> >> I would like to have as an example myself some time.
> >> A friend of mine I was speaking to recently said
> >> he had seen it done (using javascript I think)
> >> to update sections of a page.
> >
> >> Anton.
> >>
> >> > Hello guys! I want to build a program that that could run on the
> >> > client-side (IE, Netscape, Opera, etc.), get the web page
> >> > retrived by the server and do some adjustments to it, let's say,
> >> > add some footnotes or summarizing the text. Can I make that using
> >> > REBOL?
> >> >
> >> > Thanks to you all!
> >> >
> >> > Rodrigo
> >
> > --
> > To unsubscribe from the list, just send an email to
> > lists at rebol.com with unsubscribe as the subject.
> >
> >
>
>
>
>
> --
> To unsubscribe from the list, just send an email to
> lists at rebol.com with unsubscribe as the subject.
>


-- 
To unsubscribe from the list, just send an email to 
lists at rebol.com with unsubscribe as the subject.

Reply via email to