Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Indenting in a select tag
System
Hey Everyone,
I have a select box defined in my datacapture.cfg, and I would like the options' label to be indenetd sometimes (cause some options are essentially sub-options).
I tried putting spaces, non-breaking-spaces, and other possible tags, but nothing works.
I came across this "optgroup" tag which seemed promising, though that did not work either.
I have the following code:
[html]
Document Taxonomy
General Announcements
[/html]
"optgroup" is not working, as it makes the whole section under optgroup just not show up.
Is something wrong with this code? Is there another way to approach this?
Thanks,
Ido
Find more posts tagged with
Comments
Migrateduser
Optgroup is great but how are you adding spaces? If you were to add it as " ", it should work.
Migrateduser
did not work either.
Migrateduser
Where did you put the ? It needs to go inside the label - also, you need to remember to encode the ampersand, since it's an XML entity
[PHP][/PHP]
Also, where did you find this "optgroup" element - I don't see any mention of it in the DTD
Migrateduser
Sorry, I misspoke. You should encode the leading ampersand. So, you're actually using:
 
which parses to:
This experience is one of the most confusing things... so, to post this on DevNet, I have to parse the ampersand to begin with. Then, to illustrate my point, I have to double parse the ampersand which is, in effect, triple-parsing the expression.
I need a drink.
Migrateduser
Hey Guys,
Dave, encoding the leading ampersand worked well. Thanks very much... I agree on the drink part too ;-)
robhuffstedtler, optgroup is an html tag which lets you define groups of options in a select box. It seems very useful, but I guess it's not supported. A possible feature request...?
Thanks again for the help,
Ido
Migrateduser
Optgroup
is
great but it's not in the DTD. Perhaps someone can make a feature request for this? I don't really care too much either way -- I haven't needed to use optgroup in regular HTML stuff, anyway... but I'm a fan, regardless :-)