Solved

page change always jumps to bottom of content: jquery mobile

Posted on 2011-09-13
4
575 Views
Last Modified: 2013-12-27
Hello,

I have created a database driven website which uses jquery mobile. It is a shoe store, what happens is this.

First you go to the list of shoes, then click on a shoe for more details  (click view to go to shoe details). Each time you go to the shoe details page, the page aligns to the bottom of the page, very annoying.

I understand that it is trying to be smart and go back to the same spot that you left the page previously, but on many website this is not a feature, but a huge bug.

this is the website
http://www.getoutsideshoes.com/mobile_new/brand_new.php 

I need the shoe details page to always load at the top of the page, the other pages on the site do this annoying thing too, but the shoe details is most important.
0
Comment
Question by:jblayney
  • 3
4 Comments
 
LVL 5

Expert Comment

by:zvytas
ID: 36530109
Something is wrong with the URL ou;re generating. When I clicked on the show I was redirected to the following:

http://www.getoutsideshoes.com/mobile_new/brand_new.php#/mobile_new/product.php/?id=6863&whichpage=&brand=&cat=&dept=

The problem in this URL is hash (#). I then change the URL to the following:

http://www.getoutsideshoes.com/mobile_new/product.php/?id=6863&whichpage=&brand=&cat=&dept=

This version works as expected.
0
 
LVL 1

Author Comment

by:jblayney
ID: 36530262
Hello Zvytas,

thats is the answer i got on the jquery forum - unfortunately i do not create that hash nor can i remove it..

this hash is create by the jquery mobile core code,, my link is simply...

http://www.getoutsideshoes.com/mobile_new/brand_new.php?

jquery mobile rewrites it into what you see...
0
 
LVL 1

Accepted Solution

by:
jblayney earned 0 total points
ID: 36530726
Ok, I found the solution, I upgraded to the new beta 3 version of jquery mobile and it is fixed...
0
 
LVL 1

Author Closing Comment

by:jblayney
ID: 36555806
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Form with Modals 16 46
Apply tab index in forms 6 37
Randomize in Owl Carousel v1.3.2 6 21
maps stopped work unsure why 7 10
Are you having trouble connecting or getting your iPhone / Samsung device(s) to sync with Microsoft Exchange Server?   What have you tried?   What haven't you tried?
DECT technology has become a popular standard for wireless voice communication. DECT devices are not likely to be affected by other electronic devices and signals because they operate in a separate frequency-band.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
This video demonstrates how to sync Microsoft Exchange Public Folders with smartphones using CodeTwo Exchange Sync and Exchange ActiveSync. To learn more about CodeTwo Exchange Sync and download the free trial, go to: http://www.codetwo.com/excha…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now