Upgrading from a3 to a4, forms are not submitting via AJAX
I've been pulling my hair out about this one. My forms submitted with AJAX with version a3, but all of a sudden well... it's not. My login form specifically is submitting without AJAX, here's the code as rendered in raw html:
- <form action="http://whatever.local/process_login" data-transition="fade" method="post">
- <input type="hidden" name="no_back" value="1" />
-
- <div data-role="fieldcontain" style="text-align: center;">
- <input id="name" type="text" name="user" placeholder="User ID or email" />
- </div>
- <div data-role="fieldcontain" style="text-align: center;">
- <input type="password" name="password" placeholder="password" />
- </div>
- <button type="submit" data-theme="a">Submit</button>
- </form>
Any thoughts, or does anything stand out immediately?
UPDATE:
On a whim, I decided to remove the absolute url from the front of the action, so it read like 'action="/process_login"'. And it started submitting via AJAX again.
Is this a bug or was it intentional? Does putting an absolute url on ANYTHING make jqm assume that it's an external reference, and therefore not submit with AJAX?