Hi -

I'm working on a very similar problem (displaying data on a Google
map). I haven't totally implemented this yet, but my way forward is to
use AJAX to request the map data from my Django application, which
will serve it as JSON (by serializing it). You then "deserialize" it
in the Javascript code, turning it into a Javascript datastructure on
the client side. If you are using jQuery for example, jQuery will
deserialize it for you. If you are writing the Javascript by hand, you
deserialize it by doing an "eval" on the received data.

BN

On Feb 4, 10:09 pm, issya <[email protected]> wrote:
> Thanks for the reply. I was aware of that but I guess I don't
> understand how to go about using it. I do understand that I can
> serialize a queryset. But I cannot just go and use the serialized data
> as template context. From the options I've seen, it looks like if I
> did something like that I would have to process everything with the
> javascript including iterating through the data and making an html
> layout. I may be confused though, little sleep and a lack of knowledge
> will do that.
>
> I was just trying to check to see if you could maybe deserialize it
> with a custom template tag or some other easy thing.
>
> On Feb 4, 10:45 pm, Russell Keith-Magee <[email protected]>
> wrote:
>
> > On Thu, Feb 5, 2009 at 8:35 AM,issya<[email protected]> wrote:
>
> > > My ideal situation would be to initially load the data through ajax
> > > and update through ajax. But I cannot find an easy way to do this. If
> > > I searialize the data, I don't see an easy way to deserialize it.
>
> > Are you aware of the following:
>
> >http://docs.djangoproject.com/en/dev/topics/serialization/
>
> > ?
>
> > Yours,
> > Russ Magee %-)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" 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/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to