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

Ajax Page-Call with pushStateEnabled = false and ajaxEnabled = false #5574

Closed
pYr0x opened this issue Feb 2, 2013 · 1 comment
Closed

Ajax Page-Call with pushStateEnabled = false and ajaxEnabled = false #5574

pYr0x opened this issue Feb 2, 2013 · 1 comment

Comments

@pYr0x
Copy link

pYr0x commented Feb 2, 2013

Hi Guys...

i am testing the canJS Framework with jqueryMobile.

I will use the buildin router of canJS.
This router is working with locationHash. So disabeld the some jqueryMobile configs.

$.mobile.pushStateEnabled = false;
$.mobile.ajaxEnabled = false;
$.mobile.hashListeningEnabled = false;
$.mobile.linkBindingEnabled = true;  

now i have a link like this:

<a href="index.html#about/me" data-transition="slide">Button</a>

on this locationHash the CanJS router match the route and the controller is started.

BUT

jqueryMobile still wants to load the page via Ajax. It rewrites the hash into a path URL:

http://localhost/canjs/about/me

on jqueryMobile 1.2.0 i replaced this line (2871)
return uri.protocol + "//" + uri.host + uri.pathname + uri.search + hash;
to
return hash;

but that can't be solve the problem.

@jaspermdegroot
Copy link
Contributor

@pYr0x

I am closing this ticket as duplicate of #5567

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

2 participants