OnSubmit with Mobile Safari
Asked Answered
E

1

6

While using jCart I noticed that it did not work on the iPhone. After some testing (and speaking with the developer on the jcart forum ) it seems that it fails to call the submit handler when clicking a submit button:

$('form.jcart').submit(function(){...});

I have tried changing this to:

$("form.jcart input[type='submit']").click(function(){...});
// There were some other code changes needed to make this change work,
// but they are omitted for brevity (they don't impact the problem).

This too does not work. I have found other reports of having problems with .submit/onsubmit on the iPhone, but it doesn't seem like anyone has found a work around for it?

Expropriate answered 3/1, 2010 at 6:6 Comment(1)
Maybe try changing the type from submit to button?Squarerigger
C
3

Jonathan: I solved the problem we were having. As it turns out, some supplementary code was the source of the issue, and by removing it, everything works normally on the iPhone, iPod Touch.

I've described the solution back on the jCart forum: http://conceptlogic.com/jcart/help/viewtopic.php?f=3&t=316&start=10

Contumely answered 9/1, 2010 at 7:46 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.