I am submitting the user profile edit form by hooking the user profile edit form like this:
$form['actions']['submit']['#ajax'] = array( 'callback' => 'user_profile_submit', 'wrapper' => $form['#attributes']['id'], 'method' => 'invoke', 'effect' => 'fade', );
The callback function
user_profile_submit invokes a simple jQuery alert notification specifying if the form was saved successfully. The setup works perfectly on the desktop i.e. the form is submitted with AJAX with no page reload whatsoever. However, saving the same form using mobile devices causes always a page reload. Any idea what might be causing this behavior? Thanks.
Problem can be observed in Chrome/Dolphin but not in Firefox.