• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 592
  • Last Modified:

page change always jumps to bottom of content: jquery mobile

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
jblayney
Asked:
jblayney
  • 3
1 Solution
 
zvytasCommented:
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
 
jblayneyAuthor Commented:
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
 
jblayneyAuthor Commented:
Ok, I found the solution, I upgraded to the new beta 3 version of jquery mobile and it is fixed...
0
 
jblayneyAuthor Commented:
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now