Reputation: 0 Apprentice
- New Members
- Active Posts:
- 5 (0.02 per day)
- 27-August 12
- Profile Views:
- Last Active:
- Oct 01 2012 09:06 AM
- Dream Kudos:
Posts I've Made
Posted 29 Aug 2012It's up in the url, when you select the link for the next page instead of the url looking like "http://mysite/home/about" it looks like "http://mysite/#/home/about". You can see the url in the address bar at the top of your browser, it's where you type in the address for a website.
Quote from the docs for jquery mobile
QuoteIn general, hash changes are created whenever a link is clicked in jQuery Mobile. When a link is clicked, jQuery Mobile will make sure that the link is referencing a local URL, and if so, it'll prevent the link's default click behavior from occurring and request the referenced URL via Ajax instead. When the page returns successfully, it will set the location.hash to the new page's relative URL.
Link to the jquery mobile docs where I found this information.
One suggestion I've seen to correct this is to add rel="external" to the link
<a href="nextpage.aspx" rel="external">Next Page</a>
However, I haven't tried it myself to verify that it works
This works perfect.
Posted 27 Aug 2012The problem is being caused because jquery mobile is adding a # to the url on the other pages. If you look at the url you'll notice it looks something like http//:localhost:1234/#/home/about. If you manually remove the #/ and hit enter then the page will work correctly. Unfortunately I'm not sure how you'd go about fixing this as I'm not a jquery mobile expert. However if you are developing this as a mobile site then it would be best to test this on a mobile device rather than in a full blown browser as there are some differences in them.
What makes you think jquery mobile add a #? Where you see that? In what part of the code? Because I don't see any #.
Thanks for responding
Posted 27 Aug 2012I think it has something to do with 'THIS'.
- Member Title:
- New D.I.C Head
- Age Unknown
- Birthday Unknown
mserra hasn't added any friends yet.