Hi All,
I am currently trying to place HTML within an <xforms:hint> statement. As mentioned in this thread: http://www.nabble.com/Html-in-Hint-to12182515.html#a12182515 Nightly builds would now support this functionality. However, I'm finding this not working in the latest nightly build - instead, the HTML simply displays directly on the form. And when I hover my mouse over the input field to see the hint, a tiny yellow box shows up with nothing in it. I have an example attached to this post for reproduction purposes. Is this functionality still supported in Orbeon 3.7? Thanks in advance! ---Philip test_hint.xhtml |
Administrator
|
Philip,
The following seems to work for me: <xforms:hint><xforms:output mediatype="text/html" value="'Positive <b>number</b>'"/></xforms:hint> -Erik On Fri, Jul 24, 2009 at 10:54 AM, Philip.Cantin<[hidden email]> wrote: > > Hi All, > > I am currently trying to place HTML within an <xforms:hint> statement. As > mentioned in this thread: > > > http://www.nabble.com/Html-in-Hint-to12182515.html#a12182515 > > > Nightly builds would now support this functionality. However, I'm finding > this not working in the latest nightly build - instead, the HTML simply > displays directly on the form. And when I hover my mouse over the input > field to see the hint, a tiny yellow box shows up with nothing in it. I have > an example attached to this post for reproduction purposes. > > Is this functionality still supported in Orbeon 3.7? Thanks in advance! > > > ---Philip > > > http://www.nabble.com/file/p24649075/test_hint.xhtml test_hint.xhtml > > > -- > View this message in context: http://www.nabble.com/HTML-in-hint--tp24649075p24649075.html > Sent from the ObjectWeb OPS - Users mailing list archive at Nabble.com. > > > > -- > 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 |
Erik,
Okay, I see the problem now. Whether using a <xforms:output mediatype="text/html"> statement like you described above, or using inline HTML within <xforms:hint>, both seem to fail when I use the <ul>/<ol>/<li> tags. Attached is the code I used for testing this on the latest nightly build. Please let me know if this is a bug or if there's something obvious that I missed, or if perhaps this isn't supported yet. Thanks in advance! ---Philip test_hint.xhtml
|
In reply to this post by Erik Bruchez
Philip,
Reviving an old thread... This is probably because our hint is implemented as an HTML <label> element, which is an inline element, and <ul> is block element. The browser will move <ul> outside of <label>, and things stop working. In general, this means you can't use block-level elements directly under xforms:hint or xforms:label. -Erik On Fri, Jul 31, 2009 at 10:27 AM, Philip.Cantin <[hidden email]> wrote: > > Erik, > > Okay, I see the problem now. Whether using a <xforms:output > mediatype="text/html"> statement like you described above, or using inline > HTML within <xforms:hint>, both seem to fail when I use the <ul>/<ol>/<li> > tags. > > Attached is the code I used for testing this on the latest nightly build. > Please let me know if this is a bug or if there's something obvious that I > missed, or if perhaps this isn't supported yet. > > Thanks in advance! > > > ---Philip > > > http://www.nabble.com/file/p24760100/test_hint.xhtml test_hint.xhtml > > > Erik Bruchez wrote: >> >> Philip, >> >> The following seems to work for me: >> >> <xforms:hint><xforms:output mediatype="text/html" value="'Positive >> <b>number</b>'"/></xforms:hint> >> >> -Erik >> >> On Fri, Jul 24, 2009 at 10:54 AM, Philip.Cantin<[hidden email]> wrote: >>> >>> Hi All, >>> >>> I am currently trying to place HTML within an <xforms:hint> statement. As >>> mentioned in this thread: >>> >>> >>> http://www.nabble.com/Html-in-Hint-to12182515.html#a12182515 >>> >>> >>> Nightly builds would now support this functionality. However, I'm finding >>> this not working in the latest nightly build - instead, the HTML simply >>> displays directly on the form. And when I hover my mouse over the input >>> field to see the hint, a tiny yellow box shows up with nothing in it. I >>> have >>> an example attached to this post for reproduction purposes. >>> >>> Is this functionality still supported in Orbeon 3.7? Thanks in advance! >>> >>> >>> ---Philip >>> >>> >>> http://www.nabble.com/file/p24649075/test_hint.xhtml test_hint.xhtml >>> >>> >>> -- >>> View this message in context: >>> http://www.nabble.com/HTML-in-hint--tp24649075p24649075.html >>> Sent from the ObjectWeb OPS - Users mailing list archive at Nabble.com. >>> >>> >>> >>> -- >>> 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 >> >> > > -- > View this message in context: http://www.nabble.com/HTML-in-hint--tp24649075p24760100.html > Sent from the ObjectWeb OPS - Users mailing list archive at Nabble.com. > > > > -- > 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 |