inherit
162752
0
Nov 7, 2024 3:58:23 GMT -8
Pebble
Where it all does or doesn't happen!
1,437
January 2011
pebbleleague
|
Post by Pebble on Dec 13, 2012 17:51:08 GMT -8
Hi Peter , I thought I'd post in this thread as mine and this are similar. I got my code to work including navigating up or down the pages but on returning to a page the ajax call isn't made as it's already in the cache. Have you found (or do you know) a way to tell if the data is being retrieved from the cache ? Post Head and base images demo: 3testiodpebble.freemessageboards.com/thread/1/code-testing?page=3
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Dec 14, 2012 4:23:23 GMT -8
Pebble, I haven't had much time to look at a solution. What I did find is that you need to be looking at the "autosearch" UI plugin. It does support a few callbacks, but they get set by ProBoards, so setting our own breaks Pagination. We need to find a direct route to the cache object in the "autosearch" plugin, but it's not looking good. Edit: Figured it out. Hopefully there will be a better solution in the future that ProBoards adds. var fn = $(".ui-autosearch").autosearch("option", "afterSearch");
$(".ui-autosearch").autosearch("option", "afterSearch", function(){ fn.apply(this, arguments); console.log(arguments); });
|
|
inherit
162752
0
Nov 7, 2024 3:58:23 GMT -8
Pebble
Where it all does or doesn't happen!
1,437
January 2011
pebbleleague
|
Post by Pebble on Dec 14, 2012 9:15:02 GMT -8
Soooo close Peter ! FF etc works but IE (as usual) refuses to play nicely.
Much nicer idea (and cleaner) than some of the 'dirty' stuff I was experimenting with. I should get some time later today or tomorrow to have a look at this. I'll report back if I find a way.
|
|
inherit
162752
0
Nov 7, 2024 3:58:23 GMT -8
Pebble
Where it all does or doesn't happen!
1,437
January 2011
pebbleleague
|
Post by Pebble on Dec 14, 2012 9:27:28 GMT -8
|
|
inherit
2671
0
May 14, 2013 14:40:03 GMT -8
Peter
🐺
10,615
February 2002
peter3
|
Post by Peter on Dec 16, 2012 8:02:55 GMT -8
We need to ask ProBoards to add a callback for us.
Post a thread in the request board explaining the issue and asking for a callback. I doubt we will get it soon, as they are busy squashing bugs, but hopefully they could add something in for the future.
|
|