Re: [NTG-context] Howto add a # sign to a \button URL?
On Wed, May 13, 2009 at 9:02 PM, Oliver Heins wrote: > Hallo Wolfgang, > > Wolfgang Schuster writes: > > >>> Oliver Heins wrote: > 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: > > > Did \letterhash work? > > Yes, thank you. I tried to figure out where \letterhash is defined, but > couldn't find it out grepping through the sources. > maybe in catc-sym.tex at line 27 ? .catcode `.# 12 .xdef .letterhashB.string#E -- luigi ___ 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 ___
Re: [NTG-context] Howto add a # sign to a \button URL?
Hallo Wolfgang, Wolfgang Schuster writes: >>> Oliver Heins wrote: 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: > Did \letterhash work? Yes, thank you. I tried to figure out where \letterhash is defined, but couldn't find it out grepping through the sources. > __ > If your question is of interest to others as well, please add an entry > to the Wiki! I think so, but don't know where. The \button function seems not to be mentioned at all but within the context of hiding layers. Best regards, olli -- Oliver Heins o...@sopos.orgF27A BA8C 1CFB B905 65A8 http://www.sopos.org/olli/ 2544 0F07 B675 9A00 D827 1024D/9A00D827 2004-09-24 -- gpg --recv-keys 0x9A00D827 Please avoid sending me Word or PowerPoint attachments: http://www.gnu.org/philosophy/no-word-attachments.html ___ 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 ___
Re: [NTG-context] Howto add a # sign to a \button URL?
Am 13.05.2009 um 19:40 schrieb Oliver Heins: Hans Hagen writes: Oliver Heins wrote: 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: does \# work? No, this leads to the following error (which is the same I get when doing a \noexpand\foochar{}, where \foochar is \edefed as {\char 35}): Did \letterhash work? Wolfgang ___ 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 ___
Re: [NTG-context] Howto add a # sign to a \button URL?
Hans Hagen writes: > Oliver Heins wrote: >> 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: > > does \# work? No, this leads to the following error (which is the same I get when doing a \noexpand\foochar{}, where \foochar is \edefed as {\char 35}): , | ! Missing \endcsname inserted. | |\# | ...Form{http://mydomain.test/formular\# | fdf,Shortline} | \dodoexpandreferences ... \specialREFidentifier #1 | \endcsname \edef \expanded... | | \doexpandreferences ...ences #1REF(\relax )\relax | \...@eaeaea \doexpandreferenc... | | \expandreferences ...count \doexpandreferences #1, | ], | \doifreferencefoundelse ... \expandreferences {#1} | \egroup \doresetgotowheree... | ... | l.17 ...://mydomain.test/formular\#fdf,Shortline}] ` Best regards, oll -- Oliver Heins o...@sopos.orgF27A BA8C 1CFB B905 65A8 http://www.sopos.org/olli/ 2544 0F07 B675 9A00 D827 1024D/9A00D827 2004-09-24 -- gpg --recv-keys 0x9A00D827 Please avoid sending me Word or PowerPoint attachments: http://www.gnu.org/philosophy/no-word-attachments.html ___ 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 ___
Re: [NTG-context] Howto add a # sign to a \button URL?
Oliver Heins wrote: 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: does \# work? - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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 ___
[NTG-context] Howto add a # sign to a \button URL?
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 ___