ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Howto add a # sign to a \button URL?
@ 2009-05-12 15:47 Oliver Heins
  0 siblings, 0 replies; 6+ messages in thread
From: Oliver Heins @ 2009-05-12 15:47 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread
[parent not found: <39730.olli@sopos.org.1242143241.squirrel@mail.cryptix.de>]

end of thread, other threads:[~2009-05-13 23:03 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-05-12 15:47 Howto add a # sign to a \button URL? Oliver Heins
     [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

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).