On Thu, Jun 08, 2006 at 09:02:36AM -0400, Wesley Bland wrote:
> As you may have seen this summer I'm working on making a CLI for the OSCAR 
> Installer.  As I have moved into the configurator step (Step 2), I have run 
> into a major problem.  HTML is very difficult to parse into a command line 
> format. [...]

The configurator I'm familiar with uses a graphics toolkit rather than
HTML, so this is necessarily just a general comment on HTML (which I'm
very familiar with).

> For example, logically, to use a radio button, a label is necessary.  
> However, 
> in HTML there is no way to connect a label to a button because the label 
> could be to the left, right, above, or below the button. 

Physical location on the web page is not an issue. If the page is done
right, the <label> will have a "for" attribute that matches the radio
button's "id" attribute.

>                                                           Other problems 
> arise when trying to connect things like checkboxes, which have no way to be 
> tied together.

Yes they do, the <fieldset> and <legend> tags.

Again, this is a general comment on HTML, prompted by the assertion "in
HTML there is no way". In your specific case, you are at the mercy of
the code that generates the web page, which may or may not link and
group things properly. But in HTML there _is_ a way, and the author of
the web page(s) in question should be using it.

For further information, see:

    HTML & XHTML: The Definitive Guide
    Chuck Musciano & Bill Kennedy
    O'REILLY

    Chapter 9: Forms
    Section 9.10: Labeling and Grouping Form Elements

I'm still using the fourth edition, from 2000, so the chapter and
section numbering may be different now.

-- 
Ted Powell <[EMAIL PROTECTED]>   http://psg.com/~ted/
"If you don't look, you don't know."
    Dr. Sam Ting, Nobel laureate experimental physicist.


_______________________________________________
Oscar-devel mailing list
Oscar-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/oscar-devel

Reply via email to