Skip to content
This repository

allowCrossDomainPages - problems with forms? #2234

Closed
krausejj opened this Issue August 07, 2011 · 4 comments

5 participants

Justin John Bender derghostface Zero3 Adrian Pike
Justin

I'm building a jquerymobile/phonegap iOS app. All links are working beautifully now that i've set

$.mobile.allowCrossDomainPages = true;

however, forms no longer work. I am using primarily POST requests. when i use the full URL path http://mydomain.com/submit.php, the site reloads (is not completed via ajax - no transitions, CSS, etc). when i use only the submit.php path, I get the error:

"The requested URL was not found on this server."

My links work well via ajax when i use both absolute and relative paths (assuming the first link clicked uses absolute, which I'm assuming updates the base href.

Is this a bug or am I missing something?

Much thanks,
Justin

derghostface

I am experiencing the same problem. Cross domain form submitting does not work any more (it worked with alpha 4).

Zero3

@derghostface Are you sure that this worked with a4? I can reproduce on both a4 and b2 (not sure about rc1, #2440 blocks me from trying)

Adrian Pike

Also fought this same problem - I've got a fix in place, pull request in a minute.

Adrian Pike adrianpike referenced this issue from a commit in adrianpike/jquery-mobile November 16, 2011
Adrian Pike Fixed #2234 - form hijacking wasn't respecting allowCrossDomainPages,…
… now it does!
88754ac
John Bender

@krausejj

There's a simple check here for external url's that doesn't check against the cross domain pages setting, though it should.

John Bender johnbender closed this in 2edf53f June 12, 2012
John Bender johnbender referenced this issue from a commit in johnbender/jquery-mobile November 16, 2011
Adrian Pike Fixed #2234 - form hijacking wasn't respecting allowCrossDomainPages,…
… now it does!
78350c3
Jasper de Groot uGoMobi referenced this issue from a commit June 12, 2012
Commit has since been removed from the repository and is no longer available.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.