Real Life Ajax Scroll Paging
You're all probably tired of hearing me blab about this, but the real reason why I decided to revisit my Ajax scroll pagination demo yesterday was because I needed to use this technique on CFSnippets.org. Here is a real life application. Scroll down the list of snippets and once you get to the 10th snippet the next batch will load.
This is also the first real world application of cfajaxproxy that I've used. It might not stay like that (I may switch to using Spry.Utils.loadURL) but it's certainly a kick ass tag and was very simple to use.
The loading/paging process is a bit slow right now because of my newness to ColdSpring/Model-Glue. My next step is to work on speeding that up.
Oh - and the reason I needed to add pagination to the snippet view page will also be coming soon...



There is _an_ issue (you're right - not directly related) that causes that (gee thanks for noticing ;) - kidding).
What happens is when you have Ajax stuff in a custom tag or cfinclude and then have Ajax stuff inside that tag/include the scripts do get included twice.
So in my example I have a cfwindow in the layout of my entire site (for the contact form) and another cfwindow on that page (for the snippet view) so the scripts are getting duped. Thanks for the reminder - I've been meaning to ping Adobe on this. I'll do that now...
Thanks for sharing your amazing work.
In my case though, nothing's broken so I'll just work on getting my CS bean factory cached and this thing will be speedy...
Just fixed the page to use a cached version of my ColdSpring factory. Load time went from ~1500ms to around ~100ms. Paging is quick as heck now.