From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/15944 Path: main.gmane.org!not-for-mail From: Tobias Burnus Newsgroups: gmane.comp.tex.context Subject: Re: new stuff for brave users Date: Wed, 04 Aug 2004 14:24:25 +0200 Sender: ntg-context-bounces@ntg.nl Message-ID: <4110D579.1030609@gmx.de> References: <1861285002.20040804133425@klankschap.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1091622282 30077 80.91.224.253 (4 Aug 2004 12:24:42 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 4 Aug 2004 12:24:42 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Wed Aug 04 14:24:31 2004 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BsKoo-0006FA-00 for ; Wed, 04 Aug 2004 14:24:30 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7255512772; Wed, 4 Aug 2004 14:24:30 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 32052-08; Wed, 4 Aug 2004 14:24:29 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 9D4FC1276D; Wed, 4 Aug 2004 14:24:29 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5B36B1276D for ; Wed, 4 Aug 2004 14:24:27 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (ronja.vet.uu.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 32036-06 for ; Wed, 4 Aug 2004 14:24:26 +0200 (CEST) Original-Received: from enterprise.ph2.uni-koeln.de (unknown [134.95.66.111]) by ronja.ntg.nl (Postfix) with ESMTP id C6FC11276B for ; Wed, 4 Aug 2004 14:24:26 +0200 (CEST) Original-Received: from [134.95.66.42] ([::ffff:134.95.66.42]) by enterprise.ph2.uni-koeln.de with esmtp; Wed, 04 Aug 2004 14:19:55 +0200 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040617 X-Accept-Language: en-gb, en, de-de, de Original-To: mailing list for ConTeXt users In-Reply-To: <1861285002.20040804133425@klankschap.nl> X-Enigmail-Version: 0.84.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime X-Virus-Scanned: by amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: by amavisd-new at ntg.nl Xref: main.gmane.org gmane.comp.tex.context:15944 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:15944 Hello, Floris van Manen wrote: >i would opt for a better 'result-ready' flag (e.g. providing the link >to the result) instead of opening a log file that is of not too much >interest when everything went OK. > > How about something like that: Show an intermediate page with a reload HTTP header which calls itself repeatedly a) If the PDF file exists redirect to the PDF page b) If no PDF exists but the texexec has ended, redirect to the logfile Maybe some option "[ ] don't load PDF file automatically", which shows a page where I can choose between PDF file and logfile, might be useful too. The redirect should not use http-equiv but the real HTTP header. Instead of reloading, you may also try Serverpush: # Use server push to display a "Please wait..." message for the user while # executing their query if their browser supports it and they are viewing # the bug list as HTML and they have not disabled it by adding &serverpush=0 # to the URL. # # Server push is a Netscape 3+ hack incompatible with MSIE, Lynx, and others. # Even Communicator 4.51 has bugs with it, especially during page reload. # http://www.browsercaps.org used as source of compatible browsers. # my $serverpush = $format->{'extension'} eq "html" && exists $ENV{'HTTP_USER_AGENT'} && $ENV{'HTTP_USER_AGENT'} =~ /Mozilla.[3-9]/ && $ENV{'HTTP_USER_AGENT'} !~ /[Cc]ompatible/ && $ENV{'HTTP_USER_AGENT'} !~ /WebKit/ && !defined($::FORM{'serverpush'}) || $::FORM{'serverpush'}; if ($serverpush) { print $cgi->multipart_start(); # Generate and return the UI (HTML page) from the appropriate template. $template->process("list/server-push.html.tmpl", $vars) print $cgi->multipart_end(); print $cgi->multipart_start(-type=>$contenttype); } #Generate normal content print $cgi->multipart_final() if $serverpush; Tobias