I forgive you for the major checking I will have to do, since I have been annoyed at [option] code for a long time.
This is a welcome update. > Jul 31, 5:34 pm, The Editor <[email protected]> wrote: > One of the big things I've tried fixing for this next release is how > [option ...] work. This was recently changed so instead of having to > do: > > [option Value] Value you could just do [option Value] and get the > same display. > > But what about the times you want a label different from the value. If you did > > [option Value] Label it would output the equivalent of [option Value] > ValueLabel which is not good. > > I thought there was a way to distinguish between the two, but couldn't > remember how. And even after looking at the code, which is a bit > convoluted I realized I still couldn't figure it out. I also noticed > some major inconsistencies. For example, I use the parameter label in > other input types to indicate the display, but not here. And name and > value parameters give rather inconsistent results. For example, > intuitively, all the following should produce the same output when > value and label are different: > > [option value label] > [option value=value label] > [option value label=label] > [option value=value label=label] > > Yet if you type those into BoltWire, you get four different html > outputs. And none of them are right! So I have rewritten and > significantly simplified the code. I also deleted a few lines that > seemed to be antiquated (the old $args[''] syntax) and fail to do > anything I can decipher. > > I haven't released the new code yet, but this should make the > generation of good "option" html a bit easier. Note you can still do > the [option value] shortcut with no problems. You can also force a > blank label, as expected with [option value ''] > > Cheers, > Dan > > P.S. It would be a good idea to check your forms when you do the next > upgrade to make sure all is still working well. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "BoltWire" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/boltwire?hl=en -~----------~----~----~----~------~----~------~--~---
