Friday, January 27, 2012

Re: How do you pass dissimilar data from view to template?

On Thu, 26 Jan 2012 14:01:50 -0800 (PST), BillB1951 <wjburris@gmail.com>
wrote:

>Brett, Thanks. That is what I needed. BillB1951
>
Just an aside: seems like a convoluted plan to keep round-tripping
to the server/database each time you refine the filter.

I'm presuming the initial data set being sent is the "full" list. If
so, might it not be useful to somehow (Caveat: I'm /not/ skilled at
this, only toyed with Javascript too many years ago) embed a Javascript
action to count the categories, render the filter selections and, when
one is picked, have the Javascript modify the page in-place to display
only the filtered data?

Granted, adding another language on top of Python, Django, and the
template language, may be more than desirable.
--
Wulfraed Dennis Lee Bieber AF6VN
wlfraed@ix.netcom.com HTTP://wlfraed.home.netcom.com/

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate