[thelist] how to add "snap preview anywhere" to a pure AJAX web application.

VOLKAN ÖZÇELİK volkan.ozcelik at gmail.com
Tue Dec 5 15:25:27 CST 2006


On 12/5/06, Matt Warden <mwarden at gmail.com> wrote:
>
> What is triggering your oncomplete handler? onreadystatechange &
> readystate=4 & status=200?


Yes. status==200 || status==304 to be precise.


Ideally you would be able to direct the plugin to a particular portion
> of the page


Agree, it would be an ideal solution. I didn't dive deep in the code whether
that logic is encapsulated somewhere.
Besides, I don't want to either, because if the developers of the snap
plugin alter that portion (if any) I will need to re-investigate the code
and find another solution.

Alternatively one can write an addon overriding some of the prototype
functions of the SPA object. But unless snap.com provides a documented API,
hacking the plugin deeper would be risky.

if only the life was optimum :)


Cheers,
-- 
Volkan Ozcelik
+>Yep! I'm blogging! : http://www.volkanozcelik.com/cre8/blog/
+> Going solo in Turkish: http://www.volkanozcelik.com/donkisot/
+> My projects/studies/trials/errors : http://www.sarmal.com/
+> Sardalya JavaScript Library: http://www.sarmal.com/sardalya/



More information about the thelist mailing list