Inspired? No home

Snap preview anywhere change

We use the Snap Preview Anywhere in our e-mail module to preview external links in the e-mail. I wrote about how to utilize it in a page using Ajax earlier. It is very smooth but it stopped working lately due to a change in the Snap javascript (it is hosted by Snap). A quick google search found a workaround:

snap_preview_anywhere=new snapPreviewAnywhere();/*altered upon codebase change @ 20070106*/snap_preview_anywhere.onload();

I should note that I also had minor problems with this code. Sometimes it didn’t run the snap function properly. I had to set a 100 ms timeout when running the code.

Technorati:

Written on 02 February 2007.
blog comments powered by Disqus