You're undoubtedly doing something wrong if it works by disabling AJAX navigation. Disabling AJAX navigation isn't a solution and all you're doing by disabling it is inconveniencing your users with the extra overhead of initializing jQuery Mobile and enhancement on every single page in your application.
You haven't provided enough information beyond the obvious mistake of using $(document).ready(). I can't even tell if your page is structured correctly since you've only included your content div and not your entire HTML. Do you even have a page container?
I don't want your PHP code. You're only providing bits and pieces of information only when specifically asked and I don't care to take the time to repeatedly ask for the next little code fragment that you haven't included.
Sorry, but I don't have any other help I'm willing to offer as long as you only provide partial information on a per-request basis.
The fact that it works with AJAX enabled clearly indicates that you've done something wrong. But since you can't seem to provide anything unless someone specifically tries to guess what you might be doing wrong and asking for another code fragment, I'm not sure how you expect others to help.
Sounds like a scripting issue. Did you read the scripting documentation? I would assume you didn't.
The scripts are ONLY loaded on the first page you visit. So if you enter on page 1, go to page 2 and on page 2 you have scripts in your head, they aren't loaded. That is why data-ajax="false" would work in this case - you reload everything.
Leave a comment on haga0054's reply
Change topic type
Link this topic
Provide the permalink of a topic that is related to this topic