You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a listing page that is driven off a querystring parameter to load data from an AJAX call. This has a child page that contains links to other listings. Clicking on one of these links takes you back to the parent page, but does not update the data.
Clicking on that last link takes merely shows you the same data as if you'd clicked on the first link.
I've set it up so that you can do:
/#listing?testId=1
/#listing?testId=2
and this results in the same behaviour, namely that you only ever see the data for item 1.
I've stepped through my code, and it appears that the method called by withOnShow is called, but the function it returns is not called. The loadData method is therefore never called.
So, the question is, is this a bug in pager.js, expected behaviour, or an issue with how I'm using pager.js? Now, I'm always inclined to err on the side of it being my error, so if it is, how should I be coding up my navigation and view models?
I have a listing page that is driven off a querystring parameter to load data from an AJAX call. This has a child page that contains links to other listings. Clicking on one of these links takes you back to the parent page, but does not update the data.
The link 'trail' is:
Clicking on that last link takes merely shows you the same data as if you'd clicked on the first link.
I've set it up so that you can do:
and this results in the same behaviour, namely that you only ever see the data for item 1.
I've stepped through my code, and it appears that the method called by withOnShow is called, but the function it returns is not called. The loadData method is therefore never called.
So, the question is, is this a bug in pager.js, expected behaviour, or an issue with how I'm using pager.js? Now, I'm always inclined to err on the side of it being my error, so if it is, how should I be coding up my navigation and view models?
http://jsfiddle.net/ry4UK/2/
The text was updated successfully, but these errors were encountered: