Th equestion might sound dull but what don't you set the ETag header from
your controllers then?

CP3 comes with a built-in tool to do so and the code should be fairly
easily backported to CP2.2 filters.

http://www.cherrypy.org/browser/trunk/cherrypy/lib/cptools.py

- Sylvain

>
> Hi,
>
> I'm trying to save state information on the client across page loads
> using the hidden fields technique explained here on Brad Neuberg's
> blog:
> http://codinginparadise.org/weblog/2005/08/ajax-tutorial-saving-session-across.html.
>
> The basic idea is to make use of the fact that information saved to
> text-fields in a form is maintained across page loads. So what I'm
> doing is serializing a JS object into a hidden field and then reloading
> it on new page loads.
>
> The problem, as is mentioned in one of the comments
> (http://codinginparadise.org/weblog/2005/08/ajax-tutorial-saving-session-across.html#c113586654716092943),
> is that this only works if the Etag header is set. However, TG/CherryPy
> does not seem to do this for dynamic pages (the technique works fine
> for html files in /static.
>
> Has anyone had any experience with this approach or care to take a look
> at the example and perhaps provide some pointers on how to get it to
> work in TG?
>
> Many thanks,
> Tobias.
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/turbogears
-~----------~----~----~----~------~----~------~--~---

Reply via email to