← Back to team overview

launchpad-dev team mailing list archive

Re: Javascript learnings #2: Initializing your model from the JSONRequestCache

 

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 11-04-13 02:26 PM, Aaron Bentley wrote:
> The sourcepackage +sharing-details pages have model objects.  But how do
> we initialise them?  We considered initialising them from the page HTML.
>  We considered using the web service.  But it turns out there's already
> a great facility for this: the JSON cache.

Something I forgot to mention is that the JSON cache is currently only
available for logged-in users, so if your javascript needs to work for
anonymous users, you need to take a different approach.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk2m+24ACgkQ0F+nu1YWqI3RGACeMu4Jx7H89p4Y8qEr1V4X5cpJ
RZ4AnRqcS7eKl9sYZatHro39oZjdnVOo
=2avf
-----END PGP SIGNATURE-----



Follow ups

References