Sunday, June 18, 2023

Using JavaScript to enumerate a dataset returned to a page.

Helo,

I have a dataset returning to a page.  I need JavaScript to be able to process this.

Instead of using:
{% for item in dataset %}
{{ item.field1 }}
{{ item.field2 }}
{% endfor %}

Is there a JavaScript way to read this dataset/variable instead?

Thanks.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/37febb44-36e2-47ca-9eff-7011c4e9b963n%40googlegroups.com.

No comments:

Post a Comment