Solved

page change always jumps to bottom of content: jquery mobile

Posted on 2011-09-13
4
577 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
javascript: add id amounts 5 47
Home wireless security 10 48
Else condition 9 17
Multiflying 2 Input Text On a Table 7 15
In this article we have discussed about the OS X EI Capitan and how to fix Wi-Fi issue in OS X El Capitan. We have explained how to delete system level preferences and create a new Wi-Fi location to resolve Wi-Fi issue.
Set up iPhone and iPad email signatures to always send in high-quality HTML with this step-by step guide.
This Micro Tutorial will show you how to maximize your wireless card to its maximum capability. This will be demonstrated using Intel(R) Centrino(R) Wireless-N 2230 wireless card on Windows 8 operating system.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…

776 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