Hello!
I encounter a problem on XForms sites if I try to insert a telephone number in the mobile (e.g. iPhone) telephone link format. The format might look like the following examples: tel:+49(89)999999 456 tel:+49-89-999999-456 tel:089-999999-456 Any of these should be accpepted. Unfortunaletly Orbeon tries to be clever and either complains about the empty spaces or it even replaces the whole link by a link to the form itself. I tried to suppress rewriting of the link by applying f:url-norewrite but it seems to be ignored. My form source snippet <xforms:group ref="telephone[text() != '']" class="telephone"> <xhtml:a href="tel://{translate(., '-/() ', ''}" f:url-norewrite="true"> <xforms:output value="." /> </xhtml:a> </xforms:group> Any help or hints? Can I suppress the rewrite for a customizable set of protocols? Regards Thorsten -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
Thorsten,
It's probably not your issue, but your example below is missing a closing parenthesis: <xhtml:a href="tel://{translate(., '-/() ', '')}"> If I add the parenthesis, at least the URL shows in the HTML as follows: <instance>+49(89)999999 456</instance> <xhtml:a href="tel://{translate(., '-/() ', '')}"> <xforms:output value="." /> </xhtml:a> <a href="tel://+4989999999456" id="xf-3"></a> Do you get this as well? -Erik On Fri, Oct 28, 2011 at 8:20 AM, Stumpf, Jens Thorsten <[hidden email]> wrote: > Hello! > > I encounter a problem on XForms sites if I try to insert a telephone > number in the mobile (e.g. iPhone) telephone link format. > > The format might look like the following examples: > tel:+49(89)999999 456 > tel:+49-89-999999-456 > tel:089-999999-456 > > Any of these should be accpepted. > Unfortunaletly Orbeon tries to be clever and either complains about the > empty spaces or it even replaces the whole link by a link to the form > itself. > I tried to suppress rewriting of the link by applying f:url-norewrite > but it seems to be ignored. > > My form source snippet > > <xforms:group ref="telephone[text() != '']" class="telephone"> > <xhtml:a href="tel://{translate(., '-/() ', ''}" > f:url-norewrite="true"> > <xforms:output value="." /> > </xhtml:a> > </xforms:group> > > Any help or hints? > Can I suppress the rewrite for a customizable set of protocols? > > Regards > > Thorsten > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Hi!
Yeah, sorry for the typo! I tried to handle that with a trigger-Element at first but as soon as I clicked on the link I got an orben error dialog stating "orbeon doesn't know how to handle the ressource". Then I switched to a-tag and obviously did not copy properly. I'm sorry Thorsten > -----Ursprüngliche Nachricht----- > Von: [hidden email] [mailto:[hidden email]] Im Auftrag von Erik > Bruchez > Gesendet: Dienstag, 1. November 2011 05:53 > An: [hidden email] > Betreff: [ops-users] Re: tel-Protocol in URLs for mobile phones > > Thorsten, > > It's probably not your issue, but your example below is missing a closing > parenthesis: > > <xhtml:a href="tel://{translate(., '-/() ', '')}"> > > If I add the parenthesis, at least the URL shows in the HTML as follows: > > <instance>+49(89)999999 456</instance> > <xhtml:a href="tel://{translate(., '-/() ', '')}"> > <xforms:output value="." /> > </xhtml:a> > > <a href="tel://+4989999999456" id="xf-3"></a> > > Do you get this as well? > > -Erik > > On Fri, Oct 28, 2011 at 8:20 AM, Stumpf, Jens Thorsten > <[hidden email]> wrote: > > Hello! > > > > I encounter a problem on XForms sites if I try to insert a telephone > > number in the mobile (e.g. iPhone) telephone link format. > > > > The format might look like the following examples: > > tel:+49(89)999999 456 > > tel:+49-89-999999-456 > > tel:089-999999-456 > > > > Any of these should be accpepted. > > Unfortunaletly Orbeon tries to be clever and either complains about > > the empty spaces or it even replaces the whole link by a link to the > > form itself. > > I tried to suppress rewriting of the link by applying f:url-norewrite > > but it seems to be ignored. > > > > My form source snippet > > > > <xforms:group ref="telephone[text() != '']" class="telephone"> > > <xhtml:a href="tel://{translate(., '-/() ', ''}" > > f:url-norewrite="true"> > > <xforms:output value="." /> > > </xhtml:a> > > </xforms:group> > > > > Any help or hints? > > Can I suppress the rewrite for a customizable set of protocols? > > > > Regards > > > > Thorsten > > > > > > -- > > You receive this message as a subscriber of the [hidden email] mailing > list. > > To unsubscribe: mailto:[hidden email] > > For general help: mailto:[hidden email]?subject=help > > OW2 mailing lists service home page: http://www.ow2.org/wws > > > > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
Thorsten,
So are things working for you now, like in my example? Or do you still get an error, and if so which one? -Erik On Fri, Nov 4, 2011 at 7:44 AM, Stumpf, Jens Thorsten <[hidden email]> wrote: > Hi! > > Yeah, sorry for the typo! > I tried to handle that with a trigger-Element at first but as soon as I clicked on the link I got an orben error dialog stating "orbeon doesn't know how to handle the ressource". > > Then I switched to a-tag and obviously did not copy properly. > > I'm sorry > > Thorsten > > >> -----Ursprüngliche Nachricht----- >> Von: [hidden email] [mailto:[hidden email]] Im Auftrag von Erik >> Bruchez >> Gesendet: Dienstag, 1. November 2011 05:53 >> An: [hidden email] >> Betreff: [ops-users] Re: tel-Protocol in URLs for mobile phones >> >> Thorsten, >> >> It's probably not your issue, but your example below is missing a closing >> parenthesis: >> >> <xhtml:a href="tel://{translate(., '-/() ', '')}"> >> >> If I add the parenthesis, at least the URL shows in the HTML as follows: >> >> <instance>+49(89)999999 456</instance> >> <xhtml:a href="tel://{translate(., '-/() ', '')}"> >> <xforms:output value="." /> >> </xhtml:a> >> >> <a href="tel://+4989999999456" id="xf-3"></a> >> >> Do you get this as well? >> >> -Erik >> >> On Fri, Oct 28, 2011 at 8:20 AM, Stumpf, Jens Thorsten >> <[hidden email]> wrote: >> > Hello! >> > >> > I encounter a problem on XForms sites if I try to insert a telephone >> > number in the mobile (e.g. iPhone) telephone link format. >> > >> > The format might look like the following examples: >> > tel:+49(89)999999 456 >> > tel:+49-89-999999-456 >> > tel:089-999999-456 >> > >> > Any of these should be accpepted. >> > Unfortunaletly Orbeon tries to be clever and either complains about >> > the empty spaces or it even replaces the whole link by a link to the >> > form itself. >> > I tried to suppress rewriting of the link by applying f:url-norewrite >> > but it seems to be ignored. >> > >> > My form source snippet >> > >> > <xforms:group ref="telephone[text() != '']" class="telephone"> >> > <xhtml:a href="tel://{translate(., '-/() ', ''}" >> > f:url-norewrite="true"> >> > <xforms:output value="." /> >> > </xhtml:a> >> > </xforms:group> >> > >> > Any help or hints? >> > Can I suppress the rewrite for a customizable set of protocols? >> > >> > Regards >> > >> > Thorsten >> > >> > >> > -- >> > You receive this message as a subscriber of the [hidden email] mailing >> list. >> > To unsubscribe: mailto:[hidden email] >> > For general help: mailto:[hidden email]?subject=help >> > OW2 mailing lists service home page: http://www.ow2.org/wws >> > >> > > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |