From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/50363 Path: news.gmane.org!not-for-mail From: "Oliver Heins" Newsgroups: gmane.comp.tex.context Subject: Howto add a # sign to a \button URL? Date: Tue, 12 May 2009 17:47:21 +0200 (CEST) Message-ID: <44085.7120360762$1242143761@news.gmane.org> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1242143761 18828 80.91.229.12 (12 May 2009 15:56:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 May 2009 15:56:01 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Tue May 12 17:55:51 2009 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1M3uI1-0002fE-8L for gctc-ntg-context-518@m.gmane.org; Tue, 12 May 2009 17:53:09 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BDAE61FF63; Tue, 12 May 2009 17:53:08 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 06200-01-11; Tue, 12 May 2009 17:52:21 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5DF861FF47; Tue, 12 May 2009 17:51:44 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 819281FF44 for ; Tue, 12 May 2009 17:51:42 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 06193-01-6 for ; Tue, 12 May 2009 17:50:51 +0200 (CEST) Original-Received: from filter1-ams.mf.surf.net (filter1-ams.mf.surf.net [192.87.102.69]) by ronja.ntg.nl (Postfix) with ESMTP id 1E5DC1FF47 for ; Tue, 12 May 2009 17:47:31 +0200 (CEST) Original-Received: from black.cryptix.de (black.cryptix.de [83.137.101.103]) by filter1-ams.mf.surf.net (8.14.3/8.14.3/Debian-5) with ESMTP id n4CFlTct002579 for ; Tue, 12 May 2009 17:47:29 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by black.cryptix.de (Postfix) with ESMTP id 5FC88266D42 for ; Tue, 12 May 2009 17:47:29 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at black.cryptix.de Original-Received: from black.cryptix.de ([127.0.0.1]) by localhost (black.cryptix.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id LaW1A-5XQBEO for ; Tue, 12 May 2009 17:47:21 +0200 (CEST) Original-Received: from mail.cryptix.de (localhost [127.0.0.1]) by black.cryptix.de (Postfix) with ESMTP id 96CC8266D3C for ; Tue, 12 May 2009 17:47:21 +0200 (CEST) X-Squirrel-UserHash: CQ0AGiUVDhwcFkgOHhQ= X-Squirrel-FromHash: UQdcQ1VWUV0= User-Agent: SquirrelMail/1.4.10a X-Priority: 3 (Normal) Importance: Normal X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=83.137.101.103; country=DE; region=16; city=Berlin; latitude=52.5167; longitude=13.4000; http://maps.google.com/maps?q=52.5167,13.4000&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 224056820 - cc87148bca72 - 20090512 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.69 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:50363 Archived-At: Hallo, I try to send a message from a pdf to a webserver. This works fine, unless the URL has a `#' in it. Then TeX throws an error: ! Illegal parameter number in definition of \!!stringa I tried to work around it with \edef'ing a \doublecross macro which expands to \char35, but this did not work. I also tried some extensive use of \noexpand and \expandafter, but it failed, too. Obviously, there's some \csname...\endcsname stuff going on when creating the URL. TIA, olli Here's a minimal example: \setupcolors[state=start] \setupinteraction[state=start] \starttext \definefield[shorttext] [line] [ShortLine] [] [] \setupfield [ShortLine] [label,frame,horizontal] [frame=off] [height=18pt,width=15em,align=middle,frame=off] [height=18pt,width=20em,align=right,style=\tfx,,frame=on] \field[shorttext][Bitte geben Sie einen Text ein:] \blank \button[]{Abschicken}[SubmitForm{http://mydomain.test/formular#fdf,Shortline}] \stoptext ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________