azicchetti / jquerymobile-router

A router/controller for jquery mobile. Also adds support for client-side parameters in the hash part of the url. The routes handles regexp based routes. This plugin can be used alone or (better) with Backbone.js or Spine.js, because it's originally meant to replace their router with something integrated with jQM.
GNU General Public License v2.0
402 stars 69 forks source link

Back Problem #86

Open willy-estrada-cinepapaya opened 9 years ago

willy-estrada-cinepapaya commented 9 years ago

Hi, When i back to before page some times it create a loop and return to first page when i'm on page 3, or, simply return to before page, but automatically return to page 3 again. Do yo know why is it happend?

azicchetti commented 9 years ago

Il 17/01/2015 02:27, willy-estrada-cinepapaya ha scritto:

Hi, When i back to before page some times it create a loop and return to first page when i'm on page 3, or, simply return to before page, but automatically return to page 3 again. Do yo know why is it happend?

Hi, debugging "back" problems can be tricky without seeing the source code, because there are too many reasons that can cause this weird behavior (ranging from bugs to wrong user-handlers attached to certain events).

Can you please send me the source code or a simplified version of it that still shows the issue?

Thank you very much.

willy-estrada-cinepapaya commented 9 years ago

Hi Andrea,

Thanks you for your response. I've fixed the bug. My error was that i was putting onClick method within "pagebeforeshow".

Best.

2015-01-18 10:24 GMT-05:00 Andrea Zicchetti notifications@github.com:

Il 17/01/2015 02:27, willy-estrada-cinepapaya ha scritto:

Hi, When i back to before page some times it create a loop and return to first page when i'm on page 3, or, simply return to before page, but automatically return to page 3 again. Do yo know why is it happend?

Hi, debugging "back" problems can be tricky without seeing the source code, because there are too many reasons that can cause this weird behavior (ranging from bugs to wrong user-handlers attached to certain events).

Can you please send me the source code or a simplified version of it that still shows the issue?

Thank you very much.

— Reply to this email directly or view it on GitHub https://github.com/azicchetti/jquerymobile-router/issues/86#issuecomment-70412144 .