Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #31953
| From | Doc O'Leary <droleary@2015usenet1.subsume.com> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Simply displaying JSON data for users: what is your preferred method? |
| Date | 2016-12-24 16:15 +0000 |
| Organization | Subsume Technologies, Inc. |
| Message-ID | <o3m6up$3e3$1@dont-email.me> (permalink) |
I’m looking to avoid overwrought template frameworks; the idea is that I have a data-centric app that needs to display arbitrary JSON input, but do a bit more than just pretty print it. I wouldn’t be opposed to *some* small amount of customization in the look for the more structured info, but it would need to come with low overhead and be easy to drop in for someone (like a research scientist) that doesn’t know a lot about HTML or JavaScript/JSON beyond the basic syntax. My starting approach was to just drop a .toHTML() method on object prototypes that kicks out some appropriate markup (e.g., Array items become <li> elements). It works well enough, but it’s already clear that I’m going to need to factor things out to some kind of framework if I want to get fancy. Something straightforward must already exist! No event hooks needed. No $global objects for tricky manipulation of the DOM necessary. No grand visions to transform JavaScript into a whole new language wanted. I just have data that I want to make semi- attractive in a web page. If it scales *up* to those other things it’s probably a bonus, but I’m really hoping to find something that scales down. I’ve found a couple likely candidates, but I’m wondering if there’s anything really popular on the small end of the scale, or must the framework starting point be a dependency on jQuery these days. Thanks.
Back to comp.lang.javascript | Previous | Next — Next in thread | Find similar | Unroll thread
Simply displaying JSON data for users: what is your preferred method? Doc O'Leary <droleary@2015usenet1.subsume.com> - 2016-12-24 16:15 +0000
Re: Simply displaying JSON data for users: what is your preferred method? JJ <jj4public@vfemail.net> - 2016-12-25 18:01 +0700
Re: Simply displaying JSON data for users: what is your preferred method? $Bill <news@todbe.com> - 2016-12-25 15:40 -0800
Re: Simply displaying JSON data for users: what is your preferred method? David Mark <dmark.cinsoft@gmail.com> - 2016-12-25 16:21 -0800
Re: Simply displaying JSON data for users: what is your preferred method? $Bill <news@todbe.com> - 2016-12-25 19:36 -0800
Re: Simply displaying JSON data for users: what is your preferred method? David Mark <dmark.cinsoft@gmail.com> - 2016-12-26 04:50 -0800
Re: Simply displaying JSON data for users: what is your preferred method? $Bill <news@todbe.com> - 2016-12-26 15:08 -0800
Re: Simply displaying JSON data for users: what is your preferred method? David Mark <dmark.cinsoft@gmail.com> - 2016-12-28 19:26 -0800
Re: Simply displaying JSON data for users: what is your preferred method? JJ <jj4public@vfemail.net> - 2016-12-26 23:19 +0700
Re: Simply displaying JSON data for users: what is your preferred method? JJ <jj4public@vfemail.net> - 2016-12-26 23:30 +0700
Re: Simply displaying JSON data for users: what is your preferred method? Doc O'Leary <droleary@2015usenet1.subsume.com> - 2016-12-26 16:27 +0000
Re: Simply displaying JSON data for users: what is your preferred method? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2016-12-26 12:36 -0800
csiph-web