From: "Oliver Heins" <olli@sopos.org>
To: ntg-context@ntg.nl
Subject: Howto add a # sign to a \button URL?
Date: Tue, 12 May 2009 17:47:21 +0200 (CEST) [thread overview]
Message-ID: <44085.7120360762$1242143761@news.gmane.org> (raw)
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
___________________________________________________________________________________
next reply other threads:[~2009-05-12 15:47 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-12 15:47 Oliver Heins [this message]
[not found] <39730.olli@sopos.org.1242143241.squirrel@mail.cryptix.de>
2009-05-12 17:52 ` Hans Hagen
2009-05-13 17:40 ` Oliver Heins
2009-05-13 17:47 ` Wolfgang Schuster
2009-05-13 19:02 ` Oliver Heins
2009-05-13 23:03 ` luigi scarso
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='44085.7120360762$1242143761@news.gmane.org' \
--to=olli@sopos.org \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).