Snap have a very nice site preview feature. You can see it in action on this site with the little bubbles beside each link. It's not always up to date, but when it works, its great.
One slight problem, the javascript client is just not that bright. It's not AJAX aware, & if you update part of page, then the Snap script just ignores it: boo.
I've found a very simple way around this. Every time you replace a div via AJAX, make sure you run this script after the div has finished loading. This will tag the new url's with snap.
<script type="text/javascript">
SNAP_COM.shot_main_js_called = false;
SNAP_COM.shot_main_js();
</script>
The first command fools the snap script into thinking that is has not been run before, whilst the second calls the same function that's called on the window.onload event.
It really is a brain dead simple hack & I find it bit weird that this not a supported feature.

Trackback URL