#41 ✓resolved
Sven Fuchs

Frontend: prepopulate cached form fields for anonymous users in JS

Reported by Sven Fuchs | July 25th, 2008 @ 10:06 AM | in Release 0.1.0

Maybe add stories or view specs for all forms on the front end and check whether they behave as expected (no data populated to form fields when the page get's cached).

Comments and changes to this ticket

  • Sven Fuchs

    Sven Fuchs July 25th, 2008 @ 03:30 PM

    Forms like comment form on the blog article view and post form on the forum topic view are page_cached, so they can not have any data populated - neither 1) when the user is logged in as an anonymous user nor 2) when the user had entered invalid data and the form is redisplayed.

    We can solve that by

    1) do an ajax request if the anonymous user cookie is present and look up the anonymous user data OR just store the anonymous user data to the cookie as well

    2) have the same forms on another action which is not page_cached and just display it in the usual Rails way populated with the invalid record(s)

  • Sven Fuchs

    Sven Fuchs July 29th, 2008 @ 03:24 PM

    • Title changed from “Forum: post form is prepopulated with user data” to “Frontend: prepopulate cached form fields for anonymous users in JS”
    • Tag changed from cache, frontend to anonymous, cache, frontend
    • Milestone changed from First alpha to Release 0.1.0

    Implemented part 2) in http://github.com/svenfuchs/adva...

  • Sven Fuchs

    Sven Fuchs September 22nd, 2008 @ 11:47 AM

    • State changed from “new” to “open”
    • Tag changed from anonymous, cache, frontend to anonymous, cache, frontend
  • Josh H

    Josh H September 22nd, 2008 @ 03:16 PM

    • Tag changed from anonymous, cache, frontend to anonymous, cache, enhancement, frontend

    What's left to do here?

  • Sven Fuchs

    Sven Fuchs January 9th, 2009 @ 10:33 AM

    • Tag changed from anonymous, cache, enhancement, frontend to anonymous, cache, enhancement, frontend, uncomplete
    • State changed from “open” to “resolved”

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<p>Cutting edge cms, blog, wiki, forum ... plattform.</p>

<p>Find the code on <a href="http://github.com/svenfuchs/adva_cms/tree/master">GitHub: adva cms</a></p>

<p>Part of the business application framework <a href="http://www.advabest.org/">adva best</a>.</p>

People watching this ticket

Referenced by

Pages