MHL3060 / bentux

Automatically exported from code.google.com/p/bentux
0 stars 0 forks source link

Java Script doest work on product form #64

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
1. go to productform page.
2. Select main Category, the java script doesn't work on choosing different 
categories. It supposes to open/hide the specific fields for different 
categories.

The problem is caused by the changes in the following: I reverted back to the 
old version no problem after.

<form:form commandName="product" action="productform.html" method="post">
    <form:hidden path="id"/>
<ul>

    <li>
        <a href="<c:url value="catalogform.html" />"  target="catalog" ><fmt:message key="catalog.add.item" /></a>
        <p>
        <a  name="anchor" id="anchor" onclick="fillChildren(mainCatalogy, catalogManager,'parent.id', c_children)"><fmt:message key="refresh.list" /></a>
        </p>
        <appfuse:label key="product.catalog" styleClass="desc" />
        <select name="mainCategory" id="mainCategory" onchange="fillChildren(this, catalogManager,'parent.id', c_children); dwr.util.removeAllOptions(catalogs)"
            ${product.id  == null ? "" : 'disabled="disabled"'}>
            ${pleaseSelect }
            <c:forEach var="catalog" items="${catalogParents}">
                <option value="${catalog.id }" ${catalog.id == parentCatalog.id ? 'selected' : '' } > ${catalog.name}</option>
            </c:forEach>
        </select>
    </li>

Original issue reported on code.google.com by lhkh...@gmail.com on 26 Jul 2010 at 4:09

GoogleCodeExporter commented 9 years ago
fixed. Please update your code

Original comment by benli3...@gmail.com on 26 Jul 2010 at 4:42

GoogleCodeExporter commented 9 years ago

Original comment by benli3...@gmail.com on 27 Jul 2010 at 6:30