[REBOL] adding data to hyperlinks, etc. Re:(2)

2000-07-09 Thread RChristiansen

Is it possible to pass variables to a REBOL script via a hyperlink as such?

http://www.rebol.com/cgi-bin/test.cgi?value1

The QUERY_STRING will then contain "value1" correct? as if I had submitted 
a form to the .cgi script?



> In the interim while I haven't received any responses, I thought of a
> third solution, albeit I don't like it. The third solution is to have each
> news article rendered within its own form and to have its own submit
> button. The form can carry the article's reference number via the cgi
> object. This is probably the easiest solution, but I can't stand the
> thought of having so many submit buttons on a news headlines page. Perhaps
> I'll change the value of the submit button to be "!" so that it doesn't
> take up so much space. Otherwise, if anyone has an answer to my previous
> question I'm all ears.
> 
> 8-)
> 
> -Ryan
> 
> >Hello. Before I progress any further, I need some advice.
> >
> >With my script News Site, the script saves news articles as object 
> >expressions and loads them into memory before rendering a page based on
> >the values in the objects. One of the object values is a reference number
> >to differentiate the object from all others (since the objects are only
> >object expressions they are assigned to object words upon loading.)
> >
> >The next feature I want to add is a commenting system. I want the reader
> >to be able to click on a hyperlink for "comments" which will then execute
> >a 
> .cgi 
> >script. The .cgi script will then render a page including all of the 
> comments  
> >people have posted in regards to the news article in question. The
> >question 
> I 
> >have is, how do I pass a value to a script from a hyperlink so that the
> >script renders the correct set of comments?
> >
> >I have thought of another option, albeit more cumbersome. During the time
> >
> the 
> >main script creates object expressions for the news articles themselves,
> >the script could create a separate .cgi script just for that article. But
> >how 
> can 
> >I write a script to a directory and then make the script executable all
> >at the same time? I'm thinking the web server will see the .cgi extension
> >and assign it executable status, but I'm not sure that is always the
> >case.
> >
> >I hope you're understanding what I am writing. Your help is much 
> appreciated.
> >
> >-Ryan
> >
> >
> 





[REBOL] adding data to hyperlinks, etc. Re:(2)

2000-07-09 Thread tim

Hi Ryan:
You can add information to a url like so:
http://www.mydomain/cgi-bin/mine.cgi/arg1/arg2
where /arg1/arg2 function like command-line arguments.
I would be happy to help you further here, but you
should look up information on the cgi standards.

I would be willing to send you the article that I will be
writing for Andrew Kamp's site. I should have a draft
after tuesday, and I will also have a documented rebol
CGI object module available for public domain sometime
after that as well.
regards
tim
At 01:29 AM 7/9/00 -0500, you wrote:
>In the interim while I haven't received any responses, I thought of a third 
>solution, albeit I don't like it. The third solution is to have each news 
>article rendered within its own form and to have its own submit button. The 
>form can carry the article's reference number via the cgi object. This is 
>probably the easiest solution, but I can't stand the thought of having so 
>many submit buttons on a news headlines page. Perhaps I'll change the value 
>of the submit button to be "!" so that it doesn't take up so much space. 
>Otherwise, if anyone has an answer to my previous question I'm all ears.
>
>8-)
>
>-Ryan
>
>>Hello. Before I progress any further, I need some advice.
>>
>>With my script News Site, the script saves news articles as object 
>>expressions and loads them into memory before rendering a page based on the 
>>values in the objects. One of the object values is a reference number to 
>>differentiate the object from all others (since the objects are only object 
>>expressions they are assigned to object words upon loading.)
>>
>>The next feature I want to add is a commenting system. I want the reader to 
>>be able to click on a hyperlink for "comments" which will then execute a 
>.cgi 
>>script. The .cgi script will then render a page including all of the 
>comments  
>>people have posted in regards to the news article in question. The question 
>I 
>>have is, how do I pass a value to a script from a hyperlink so that the 
>>script renders the correct set of comments?
>>
>>I have thought of another option, albeit more cumbersome. During the time 
>the 
>>main script creates object expressions for the news articles themselves,
the 
>>script could create a separate .cgi script just for that article. But how 
>can 
>>I write a script to a directory and then make the script executable all at 
>>the same time? I'm thinking the web server will see the .cgi extension and 
>>assign it executable status, but I'm not sure that is always the case.
>>
>>I hope you're understanding what I am writing. Your help is much 
>appreciated.
>>
>>-Ryan
>>
>>
>
>




[REBOL] adding data to hyperlinks, etc. Re:(2)

2000-07-09 Thread Al . Bri

Ryan wrote:
> The next feature I want to add is a commenting system.

Have you thought about a system like Xerox's Sparrow:
http://www.parc.xerox.com/istl/projects/sparrow/doc/www7/
or CritSuite by Ka-Ping Yee:
http://crit.org/http://crit.org/index.html
? They have useful features that might inspire you.

Andrew Martin
ICQ: 26227169
http://members.xoom.com/AndrewMartin/
-><-