"Add Shipping Point"ボタンをクリックすると、情報を入力するダイアログが表示され、 "Add"を押すと、これにより、Ajaxコールが作成され、dbに出荷ポイントが追加され、ダイアログが閉じられ、ajaxコールのsuccessコールバックメソッドによって出荷ポイントテーブルにtrが追加されます。 trが追加されていないこと以外はすべて動作しています。
ここに、追加された行を取得する出荷ポイントテーブルのhtmlがあります。
<table id="shipPoints" class="ui-widget-content" width="697">
<thead>
<tr class="ui-widget-content" width="696">
<th class="ui-widget-header" width="395">
Shipping Points
</th>
<th class="ui-widget-header" width="300">
Remove
</th>
</tr>
</thead>
<tbody>
<c:forEach items="${shippingPoints}" var="shippingPoint">
<tr width="695">
<td with="395">
${shippingPoint.shippingPointsCity},
${shippingPoint.shippingPointsState}
</td>
<td width="300">
<INPUT type="checkbox" NAME="chk" value="${shippingPoint.shippingPointsId}" />
<INPUT type="hidden" NAME="shipPointId" VALUE="${shippingPoint.shippingPointsId}" />
</td>
</tr>
</c:forEach>
</tbody>
</table>
そして、ここでは仕事をしているjqueryです。
ここに情報を入力するためのダイアログボックスのコードを示します。
<div id="dialog-form" title="Shipping Points">
<p class="validateTips">
Please include all vendor ship points by product group. If vendor
ships all products from one location input City, State, Zip Code
then select "All" for product group.
</p>
<fieldset>
<label font-family="Courier New" align="left" for="city">City</label>
<input maxlength=50 align="right" type="text" name="city" id="city"
class="text ui-corner-all" />
<br />
<label font-family="Courier New" align="left" for="state">State</label>
<select maxlength=6 align="right" name="state" id="state"
class="text ui-corner-all">
<option value="">Select State...</option>
<c:forEach items="${states}" var="state">
<option value="${state.fieldValue}">
${state.fieldDescription}
</option>
</c:forEach>
</select>
<br />
<label font-family="Courier New" align="left" for="stateOther">State (Other):</label>
<input maxlength=6 align="right" type="text" name="stateOther" id="stateOther" value=""
class="text ui-corner-all" />
<br />
<label font-family="Courier New" align="left" for="zip">Zip</label>
<input align="right" maxlength=10 align="right" type="text" name="zip" id="zip" value=""
class="text ui-corner-all" />
<br />
<label font-family="Courier New" align="left" align="left" for="product">Product</label>
<input align="right" maxlength=50 type="text" name="product" id="product" value=""
class="text ui-corner-all" />
<br />
</fieldset>
</div>
あなたは – Jason
jqueryの-UI-1.8.16 –
を使用しているのjQueryのバージョン、我々はあなたがいる可能性があり、特定の個別の問題を修正助けるためにここにいる間、私たちはあなたを書くためにここにいませんよコードを作成し、プロジェクトを構築します。 また、jQueryのUIはjQueryのバージョンではありません。 – Jason