New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

allowCrossDomainPages - problems with forms? #2234

Closed
ghost opened this Issue Aug 7, 2011 · 4 comments

Comments

Projects
None yet
4 participants
@ghost

ghost commented Aug 7, 2011

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

@ghost ghost assigned johnbender Aug 10, 2011

@derghostface

This comment has been minimized.

Show comment
Hide comment
@derghostface

derghostface Aug 19, 2011

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

derghostface commented Aug 19, 2011

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

@Zero3

This comment has been minimized.

Show comment
Hide comment
@Zero3

Zero3 Oct 8, 2011

@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)

Zero3 commented Oct 8, 2011

@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)

@adrianpike

This comment has been minimized.

Show comment
Hide comment
@adrianpike

adrianpike Nov 16, 2011

Contributor

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

Contributor

adrianpike commented Nov 16, 2011

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

adrianpike added a commit to adrianpike/jquery-mobile that referenced this issue Nov 16, 2011

@johnbender

This comment has been minimized.

Show comment
Hide comment
@johnbender

johnbender Dec 5, 2011

Contributor

@krausejj

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

Contributor

johnbender commented Dec 5, 2011

@krausejj

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

johnbender added a commit to johnbender/jquery-mobile that referenced this issue Jun 12, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment