On 20/03/07, Mario Minati <[EMAIL PROTECTED]> wrote:
PS: The formfu validation works fine and I think I'm gone start with the 'repeatable' stuff in this week. would you prefer a different name for it.
I've brought this back to the html-widget list, so as to not annoy anyone on the cat list. I had a go at the repeatable element last week, and got it working, but came up against a show-stopper. I didn't have the time to bring it to the list for further discussion. Basically, it works fine with javascript, but not the non-JS version. For the non-JS version to work, the 'Add Another X' button needs to be a submit button - a plain 'button' won't submit the form, even with type="submit" set. However, for most form layouts, this means the 'Add Another X' button will be *before* the "main" form submit button in the markup. So, if the user clicks one of the buttons it works fine, but if the user presses 'enter', the browser would submit the form using the first submit button found in the markup - which for us is the wrong button. I've tried giving the 'Add Another X' button a higher 'tabindex' value than the main submit button, but it makes no difference when 'enter' is pressed. Any ideas? If it's not possible to get it working for non-JS, we'd have to make sure that non-JS users don't see the extra button at all, so as not to confuse. Carl _______________________________________________ Html-widget mailing list Html-widget@lists.rawmode.org http://lists.rawmode.org/cgi-bin/mailman/listinfo/html-widget