Skip to content

Ajax navigation breaks with Ajax error #1171

Closed
Goudnet opened this Issue Mar 2, 2011 · 9 comments

6 participants

@Goudnet
Goudnet commented Mar 2, 2011

I'm very sorry I didn't get around to reporting this in alpha2, but the problem also exists in a3:

When traversing links in my mobile site, eventually it no longer processes the URLs correctly.

Problem Site: (running a3)
http://b.ruskin.co/ (not .com)
Steps
1. From Home Page
2. Click "News" toolbar link
3. Click first article link "Here's the 411..."
4. Click "Catalog" toolbar link (error)

Site running a1 where the links work fine...
http://ruskin.co/

@hotTea
hotTea commented Mar 2, 2011

I am facing a similar issue. I am using JQM alpha 3 and jquery 1.5.1.

When website/app is loaded all links work fine, until some link is clicked which returns error response(like 500 or 400 error page). After that navigation freezes and stops working all together.

@Goudnet
Goudnet commented Mar 3, 2011

I also confirm that navigation stops working once the error occurs.

@dimio85
dimio85 commented Mar 18, 2011

I've fixed it by adding a "isPageTransitioning = false;" in the "error:" of the $.ajax call

I hope this helps

@scottjehl

Just comments, code order, and whitespace, but also confirming: This Closed by c50158c, where a page loading error prevents future page loads from working.

Confirmed on this page. Scroll down and click the error message, than another link to navigate elsewhere.
http://jquerymobile.com/test/#docs/pages/docs-pages.html

@scottjehl scottjehl closed this Mar 27, 2011
@Goudnet Goudnet reopened this Apr 11, 2011
@Goudnet
Goudnet commented Apr 11, 2011

I just added alpha 4.1 to the site and the error still happens:
http://b.ruskin.co/

@hotTea
hotTea commented Apr 11, 2011

@Goudnet - Are you sure this is happening with alpha 4.1 ? I am not seeing this issue with alpha 4.1 in my code. I hit an error page, and ajax links still work fine. Also tested here http://jquerymobile.com/demos/1.0a4.1/#docs/pages/docs-pages.html . Or does your navigation breaks with some different usecase ?

-Mayank

@Goudnet
Goudnet commented Apr 12, 2011

Yes, using Alpha 4.1, this problem still exists:
Go here: http://b.ruskin.co/
Click "Catalog" then click "Access Doors" Then click the toolbar "News" link. It says cannot load page, even though it's a valid link. You can confirm that it's valid by visiting the site in a non-supported browser like IE8.

Then go here: http://ruskin.co/
When you do the same thing with the same HTML but with jQueryMobile Alpha 1, everything works fine. This problem originally broke my siite in Alpha 2.

@brandonwoo brandonwoo pushed a commit that referenced this issue Apr 18, 2011
scottjehl Just comments, code order, and whitespace, but also confirming: This …
…Fixes #1171, where a page loading error prevents future page loads from working.

Confirmed on this page. Scroll down and click the error message, than another link to navigate elsewhere.
http://jquerymobile.com/test/#docs/pages/docs-pages.html
c50158c
@toddparker toddparker closed this Apr 21, 2011
@johnbender

Goudnet,

We're going close this one and open it under something more descriptive of the issue:

#1498

Also, if you could test with the latest this might be handled by the absolute pathing changes I made a couple nights ago. Thanks for sticking with it!

@Goudnet
Goudnet commented May 13, 2011

johnbender,

I just now got around to updating the test page.... :( the problem is still present in a4.1.

Steps:
1: go to http://b.ruskin.co/
2. Click on "Catalog"
3. Click on "Access Doors"
4. Click on the "News" toolbar item.

if you do the same steps on http://ruskin.co/ (Alpha 1) it works correctly.

@timmywil timmywil pushed a commit that referenced this issue Oct 24, 2011
scottjehl Just comments, code order, and whitespace, but also confirming: This …
…Fixes #1171, where a page loading error prevents future page loads from working.

Confirmed on this page. Scroll down and click the error message, than another link to navigate elsewhere.
http://jquerymobile.com/test/#docs/pages/docs-pages.html
7a2952b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.