Path: news.daimi.aau.dk!not-for-mail From: Flemming Gram Christensen Newsgroups: comp.lang.beta Subject: Re: Calling BETA programs from within HTML documents Date: Tue, 28 Jul 1998 12:12:18 +0200 Organization: Aarhus University, Institute of Computer Science (DAIMI) Lines: 73 Message-ID: <35BDA402.57F3@mjolner.dk> References: <359894EF.FCBD45C@salami4.cs.uni-dortmund.de> NNTP-Posting-Host: asgaard.mjolner.dk Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: xinwen.daimi.aau.dk 901620757 13328 255.255.255.255 (28 Jul 1998 10:12:37 GMT) X-Complaints-To: news@daimi.aau.dk NNTP-Posting-Date: 28 Jul 1998 10:12:37 GMT X-Mailer: Mozilla 3.01 (X11; I; SunOS 5.5.1 sun4m) Xref: news.daimi.aau.dk comp.lang.beta:11654 Hi I have used BETA for cgi-scripts and there is nothing conceptually vrong with that. One thing you are missing is a 'Content-type:text/html\n\n'->screen.putline; As in normal cgi-scripts this must be the first output. Regards Flemming Sascha Kimmel wrote: > > Hello! > > I want to use BETA instead of Perl for evaluating forms from within HTML > documents. > The HTML document looks as follows: > > > BETA Commandline Test > > > > >
> > >
> > > > > The BETA program looks as follows: > ORIGIN '~beta/basiclib/current/betaenv'; > --PROGRAM: descriptor-- > (# > > commandline:^text; > do > > (* 'Number of arguments: '-> putText; noOfArguments->putInt; newLine; > *) > (for i:noOfArguments repeat i->arguments->putLine; for); > > > #) > > When I call this program directly everything works as it should. > But when I try to execute it using the form on the HTML page I get the > following in my browser: > ELFalhallaOnProcessStop²`ô, ´`? ?Ãàâ. ??ö > öàöà²àЬ î?î.`ÿõX?¿ÿÚô????¢ ?¤? ??¡è?ÐbT?Ð 8° > @¦?ü?¦Ð#ì@??ù@s~?~ LÖ£*: > ¤@~°? ,?- Point division by zeroconverted integer to %d > ist constructionream#ed.VNVC: (GNU) 2.7.2.1 > > Does anyone know how to solve the problem? > > Regards, > Sascha Kimmel -- /Flemming Gram Christensen ------------------------------------------------------------------------ Mjolner Informatics ApS Phone: +45 86 20 20 00 Science Park Aarhus Fax: +45 86 20 12 22 Gustav Wieds Vej 10 DK-8000 Aarhus C Denmark E-mail: gram@mjolner.dk ------------------------------------------------------------------------