On a jQuery page, I have a login form. The code is simple enough:
<form method="post">
<div data-role="fieldcontain">
.... Form here
</div>
</form>
but the following form is submitted, JQM loads the next page via Ajax POST.
The problem is that any in-line Javasctipt on that new page is NOT initialized. I'm not talking about the $(document) elements etc. the entire in-lined Javascript blocks aren't initialized.
However if I add
data-ajax="false"
to the form tag, everything is fine. The page is loaded and initialized correctly.
Why does this happen, and is there a way to trigger a page initialization with the ajax loaded content?
I've observed this on both Firefox and the Android Webview clients.