I'm writing an order entry web application. I don't think it matters here, but the server side is in .Net MVC.
In the order page, each line is a separate html form with a unique identifier. When a user changes the order quantity, the line is submitted and refreshed with an AJAX call.
Here's the basic setup:
function submitLine(id) {
var selector = "form#Frm" + id;
$(selector).trigger("onsubmit");
}
<td class="order-qty">
<input id="Item_CaseQty" name="Item.CaseQty" onblur="submitLine('ffdc1d61-9025-416b-b62e-09691cf64bb8');" type="text" value="5" />
</td>
This works fine in (at least) IE8, Chrome, and Android.
It does not work on iPad Safari. I have some other, less critical, defects on the iPad that seem to be related to focus/blur issues. Are these events not supported on iPad? If not, are there others that I could use instead.