I've inherited a website which uses jQuery to do AJAX submits. (The website owner and the original designer fell out).
A piece of code which used to work under IE and FF (Chr, Opera, SAfari) now only works under IE.
The failing code is given below.
Looking at the PHP the code uses AJAX to submit a query. It looks as if this uses a jQuery hook to add a variable "requestType", although frankly the code is somewhat hard to follow.
What happens is that under IE all variables are available to the PHP script, ie OptQty, Qtys, PrOptId and addToCartSubmit.
Under FF etc the posted value addToCartSubmit = "Add to cart"is not there.
Is this a bug in jQuery, or a hole in the spec, or is my inherited site playing silly whatsits?
Anyone else met this?
Malcolm Cowen
Code snippet
<form id="cartForm" method="post" class="clearfix">
<tr>
<td class="qty">QTY: <input type="text" class="OptQty" name="Qtys[]" /></td>
<td class="desc">Humrummit- Grey</td><td class="Prc">£33.86<input type="hidden" name="PrOptId[]" value="3680" />
</td></tr>
<tr>
<td class="qty">QTY: <input type="text" class="OptQty" name="Qtys[]" /></td>
<td class="desc">Humrummit- Pink</td><td class="Prc">£33.86<input type="hidden" name="PrOptId[]" value="3681" />
</td></tr>
<tr>
<td class="qty">QTY: <input type="text" class="OptQty" name="Qtys[]" /></td>
<td class="desc">Humrummit- Blue</td><td class="Prc">£33.86<input type="hidden" name="PrOptId[]" value="3682" />
</td></tr>
<tr class="submit">
<td colspan="4">
<input type="submit" name="addToCartSubmit" value="Add to cart" />
</td>
</tr>
</form>