lcFrank's Emails

weblet running

Home dic local
lcCGI
ltRe: weblet running
ltFirst live webneurons
ltEarly webneurons
Hi John, I've played a bit with the webneurons today. As I said in the other message it still is very vague, maybe by making something that works things will clear up. Here it comes (don't laugh, it is very simple) This weblet does nothing but add. I've got two webneurons (see attached gif): [early webneurons link] A) print.html <!DOCTYPE HTML SYSTEM "html.dtd"> <HTML> <HEAD><TITLE>PRINT<|TITLE><|HEAD> <BODY BGCOLOR=C0C0C0> <TABLE BORDER=1> <TR><TD COLSPAN=3>CODE<|TD><|TR> <TR><TD>PRINT<|TD><TD><|TD><|TR> <TR><TD COLSPAN=3>LINKS<|TD><|TR> <TR><TD>&lt;<|TD><TD>5<|TD><TD><A HREF="add1.html">Add one<|A><|TD><|TR> <TR><TD COLSPAN=3>DEFAULT<|TD><|TR> <TR><TD>STOP<|TD><|TR> <|TABLE> <|BODY> <|HTML> B) add1.html <!DOCTYPE HTML SYSTEM "html.dtd"> <HTML> <HEAD><TITLE>Add 1<|TITLE><|HEAD> <BODY BGCOLOR=C0C0C0> <TABLE BORDER=1> <TR><TD COLSPAN=3>CODE<|TD><|TR> <TR><TD>+<|TD><TD>1<|TD><|TR> <TR><TD COLSPAN=3>LINKS<|TD><|TR> <TR><TD><|TD><TD><|TD><TD><||TD><|TR> <TR><TD COLSPAN=3>DEFAULT<|TD><|TR> <TR><TD>RETURN<|TD><|TR> <|TABLE> <|BODY> <|HTML> This is the output of the weblet: <!DOCTYPE HTML SYSTEM "html.dtd"> <HTML> <HEAD><TITLE>Webneuron output<|TITLE><|HEAD> <BODY BGCOLOR=C0C0C0> <P> Webneuron output = 5 <BR> /webneuron/print.html - <|P> <|BODY> <|HTML> This is a logfile (for debugging) of the weblet: file: operator= + value = 1 Caller : /cgi-bin/fire.pl/webneuron/print.html?VALUE=2 file: operator= PRINT value = file: action= fire value = 5 /cgi-bin/fire.pl/webneuron/add1.html?VALUE=2 file: operator= + value = 1 Caller : /cgi-bin/fire.pl/webneuron/print.html?VALUE=3 file: operator= PRINT value = file: action= fire value = 5 /cgi-bin/fire.pl/webneuron/add1.html?VALUE=3 file: operator= + value = 1 Caller : /cgi-bin/fire.pl/webneuron/print.html?VALUE=4 file: operator= PRINT value = file: action= fire value = 5 /cgi-bin/fire.pl/webneuron/add1.html?VALUE=4 file: operator= + value = 1 Caller : /cgi-bin/fire.pl/webneuron/print.html?VALUE=5 file: operator= PRINT value = file: action= value = 5 I guess this looks a bit vague the weblet is run by calling http://gallinago.cybpub.nl:8080/fire.pl/webneuron/print.html?VALUE=1 (This can't be done from the net, intranet only) At the moment al the firing is done by the browser: print.html : if VALUE <operator from table> <constant from table> output Location: <data from table> in other words by redirecting: The problem with this is only 10 redirections are allowed by the cern httpd server. so this has to be implemented differently. Futher more only one webneuron is allowed to output and then the weblet finishes. The second problem I have is with the Default action RETURN I thought the caller URL would be stored in $ENV{'REFERER_URL'} but it isn't so as a first start I've made this a hardlink to print.html (in the script) but eventually a webneuron has to send it's name (= URL). The last simplification I made is that only one variable can be send (which makes sense to me but I suspect you want to send more vars so a collum to the first parts of the table should be adden for variable names) The nice thing about this weblet is that no data is stored. (no file is changed) What do you think of it? Regards, Frank ____________________________________________________________ Drs. F.P. Schuurmans CYBER PUBLISHERS frank@bio.vu.nl Amsterdam, The Netherlands Content-Type: IMAGE/GIF; name="weblet.gif" Content-ID: <Pine.LNX.3.91.960624164230.10699D@gallinago.cybpub.nl> Content-Description: Attachment Converted: C:\ATTACH\weblet.gif