On 17 Jan 2002, William R Ward wrote: > That's a violation of the principle of separating HTML from code. > What if the HTML designer decides to use a radio button group instead > of a popup?
Actually, I'd say that HTML is a violation of the principle of separating design from programming. There's no clear separation between the programmatic elements of the <form> tags and the layout of the <form> tags. You'll have to draw the line somewhere - clearly the designer can't be entirely in charge of form creation. I've found that in most cases the content of list-boxes is part of the programming of a web app. If there is styling to be done then it's usually just a matter of adding a css class attribute. It's a balancing act and you have to weigh the pros and cons on each side. It is certainly possible to produce a <select> element entirely inside the template. What you end up with is a rat's nest of loops and conditionals. Alternately you can give up a certain amount of flexibility in return for vastly simplifying your templates. I generally choose the latter. -sam --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
