Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Pages with data-ajax="false" on form fail to load - reopened #4896

Closed
mengjang opened this issue Aug 24, 2012 · 5 comments
Closed

Pages with data-ajax="false" on form fail to load - reopened #4896

mengjang opened this issue Aug 24, 2012 · 5 comments

Comments

@mengjang
Copy link

I can't reopen issue #3472. Therefore, a new issue.

The problem still exists in iPhone simulators 4.3, 5.0, and 5.1.

I ran into the problem with a form in my signup page code. When doing $.mobile.changePage to the signup page, the page doesn't load because the form has data-ajax="false" on it.

I'm using jam 1.1.1 and PhoneGap 1.9.

@arschmitz
Copy link
Contributor

@mengjang can you please confirm this issue still exists on latest code and provide a test page see: https://github.com/jquery/jquery-mobile/blob/master/CONTRIBUTING.md

@JohannesRudolph
Copy link

Facing the same issue and could reproduce with 1.2 stable: http://jsbin.com/amozef/15/

It's caused by $.support.dynamicBaseTag = false; which most libraries that integrate with jqm and handle routing themselves set. A bug in JQM causes it to choke on forms that do not specify an action attribute. (line 3670)

Ideally, jqm should not make assumptions about the attributes specified on a form when it tries to do its replacements. In this case, I'm integrating with angular.js which has built in forms handling, but for that to work one may not specify an action attribute on the form.

@JohannesRudolph
Copy link

Reproduced with latest: http://jsbin.com/amozef/19

issue now at line 4252

@jaspermdegroot
Copy link
Contributor

Updated the test page: http://jsbin.com/owasir/32 (bind to mobileinit to configure defaults).

@arschmitz
Copy link
Contributor

no updates since last posting to test latest because nav has been rewritten in last 2 versions im closing until we get confirmation this still exists

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants