ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: Howto add a # sign to a \button URL?
       [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
  0 siblings, 1 reply; 6+ messages in thread
From: Hans Hagen @ 2009-05-12 17:52 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Howto add a # sign to a \button URL?
  2009-05-12 17:52 ` Howto add a # sign to a \button URL? Hans Hagen
@ 2009-05-13 17:40   ` Oliver Heins
  2009-05-13 17:47     ` Wolfgang Schuster
  0 siblings, 1 reply; 6+ messages in thread
From: Oliver Heins @ 2009-05-13 17:40 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hans Hagen <pragma@wxs.nl> 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.
| <to be read again> 
|                    \#
| <argument> ...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 olli@sopos.org    F27A 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Howto add a # sign to a \button URL?
  2009-05-13 17:40   ` Oliver Heins
@ 2009-05-13 17:47     ` Wolfgang Schuster
  2009-05-13 19:02       ` Oliver Heins
  0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Schuster @ 2009-05-13 17:47 UTC (permalink / raw)
  To: mailing list for ConTeXt users


Am 13.05.2009 um 19:40 schrieb Oliver Heins:

> Hans Hagen <pragma@wxs.nl> 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Howto add a # sign to a \button URL?
  2009-05-13 17:47     ` Wolfgang Schuster
@ 2009-05-13 19:02       ` Oliver Heins
  2009-05-13 23:03         ` luigi scarso
  0 siblings, 1 reply; 6+ messages in thread
From: Oliver Heins @ 2009-05-13 19:02 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hallo Wolfgang,

Wolfgang Schuster <schuster.wolfgang@googlemail.com> 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 olli@sopos.org    F27A 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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Howto add a # sign to a \button URL?
  2009-05-13 19:02       ` Oliver Heins
@ 2009-05-13 23:03         ` luigi scarso
  0 siblings, 0 replies; 6+ messages in thread
From: luigi scarso @ 2009-05-13 23:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 611 bytes --]

On Wed, May 13, 2009 at 9:02 PM, Oliver Heins <olli@sopos.org> wrote:

> Hallo Wolfgang,
>
> Wolfgang Schuster <schuster.wolfgang@googlemail.com> 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 .letterhash            B.string#E


-- 
luigi

[-- Attachment #1.2: Type: text/html, Size: 1131 bytes --]

[-- Attachment #2: Type: text/plain, Size: 487 bytes --]

___________________________________________________________________________________
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

* 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

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 --
     [not found] <39730.olli@sopos.org.1242143241.squirrel@mail.cryptix.de>
2009-05-12 17:52 ` Howto add a # sign to a \button URL? 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
2009-05-12 15:47 Oliver Heins

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