| Цитата |
|---|
Maks Sidorenko пишет: Это не шаблон, а вызов самого Компонента 1.0. Приведите, пожалуйста, контекст, из которого Вы взяли этот вызов. |
Кусок примера из документации.
| Цитата |
|---|
Maks Sidorenko пишет: 1) Используя шаблон компонента и кастомизацию этого шаблона 2) <script>window.onload = function () {document.forms.myform.onsubmit = MyFormHandler; }</script> |
Жесть! Называется - гланды через... Не проще ли ввести дополнительный параметр в формы и не париться?
| Цитата |
|---|
Maks Sidorenko пишет: В компонентах, входящих в поствку, элементы выпадающего списка строятся средствами Главного модуля. Насколько я помню, там вывод приводился в соответствие стандарту, хотя, я могу и ошибаться. Проверьте версию продукта. Кроме того, ничто не мешает кастомизировать шаблон компонента 2.0 (что гораздо проще, чем аналогичное действие с со старыми компонентами) и выстроить список элементов вручную. |
6.5.4.
| Цитата |
|---|
Validation Output: 131 Errors Line 58, Column 25: "selected" is not a member of a group specified for any attribute. <select selected name='form_dropdown_SIMPLE_QUESTION_635' id='form_dropd
Line 58, Column 132: the name and VI delimiter can be omitted from an attribute specification only if SHORTTAG YES is specified. …TION_635' size='1'><option selected value="609">- выбрать - </option><option
"VI delimiter" is a technical term for the equal sign. This error message means that the name of an attribute and the equal sign cannot be omitted when specifying an attribute. A common cause for this error message is the use of "Attribute Minimization" in document types where it is not allowed, in XHTML for instance.
How to fix: For attributes such as compact, checked or selected, do not write e.g <option selected ... but rather <option selected="selected" ... Line 60, Column 36: the name and VI delimiter can be omitted from an attribute specification only if SHORTTAG YES is specified. <input type="radio" checked id="616" name="form_radio_SIMPLE_QUESTION_11
"VI delimiter" is a technical term for the equal sign. This error message means that the name of an attribute and the equal sign cannot be omitted when specifying an attribute. A common cause for this error message is the use of "Attribute Minimization" in document types where it is not allowed, in XHTML for instance.
How to fix: For attributes such as compact, checked or selected, do not write e.g <option selected ... but rather <option selected="selected" ... Line 60, Column 40: value of attribute "id" invalid: "6" cannot start a name. <input type="radio" checked id="616" name="form_radio_SIMPLE_QUESTION_11
It is possible that you violated the naming convention for this attribute. For example, id and name attributes must begin with a letter, not a digit. |
И это 131 ошибка для 17 полей. При этом я уже избавился от ошибок в самом теге form и hidden полей, которые выводятся по ShowFormHeader()
PS Кстати в форуме, после предпросмотра, возвращения назад с помощью кнопки браузера и нажатия кнопки "Ответить", оказываешься снова в предпросмотре.