Showing posts with label XHTML. Show all posts
Showing posts with label XHTML. Show all posts

Monday, June 09, 2008

Using "Symbols" or Special Characters in XHTML

Using the numbered codes located
http://www.elizabethcastro.com/html/extras/entities.html

Is working for me with Orbeon XForms. For example, lower case beta is Β but using Β does not work (Orbeon throws an error).

Wednesday, June 04, 2008

HTML and XForms custom attributes

In your HTML, you can add attributes with any name to an HTML element. This can be helpful for JavaScript libraries. However, if you try to access this attribute as you normally might-- document.getElementById('myelement').myattribute-- you'll get a null back. The solution is to use .getAttribute().

Additionally, with xforms:input and Orbeon, to add custom attributes you need to prefix the attribute with the xhtml namespace, like so:

xforms:input id="fun" xhtml:myattribute="more fun"

This attribute will be applied NOT to the generated HTML element, but to the span containing the HTML input element! So then you need to use the .parentNode attribute of the HTML element to access this SPAN.

Labels

Blog Archive

Contributors