Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #32941
| From | Janis Papanagnou <janis_papanagnou@hotmail.com> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: Appropriate event for change of a HTML selection list |
| Date | 2017-04-05 15:22 +0200 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <oc2r2d$611$1@gioia.aioe.org> (permalink) |
| References | <oc0m22$aa3$1@gioia.aioe.org> <9dce161f-65f8-49bd-8b35-220bfe279705@googlegroups.com> |
On 04.04.2017 21:05, Julio Di Egidio wrote: > On Tuesday, April 4, 2017 at 7:44:41 PM UTC+2, Janis wrote: >> This post is (primarily) about which javascript event function should be >> used in the context of a HTML selection list, and (secondarily) whether >> there's a suggestion for a different approach. > > Change the (view) model, let the UI reflect the model. > > Start by learning Knockout: <http://knockoutjs.com/>. > > Have fun. Thanks, Julio. I'd rather not want to redesign the whole code to solve a comparably simple technical detail, though.[*] I also want to avoid introducing third party lib's. - Sorry for not having been clear about that. I'm aware that me asking for a "different approach" might invite responses that include suggestions of arbitrary complexity or effort. This was not my (primary) concern. But thanks anyway for the knockoutjs pointer. If common opinion is that the intended primitive task is not solvable in any simple way that's also okay for me, since (as I said upthread) I could implement a staightforward and simple workaround. Janis [*] The library link you gave refers to "Model View Viewmodel" and Wikipedia says: "A criticism of the pattern comes from MVVM creator John Gossman himself, who points out overhead in implementing MVVM is "overkill" for simple UI operations."
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Appropriate event for change of a HTML selection list Janis Papanagnou <janis_papanagnou@hotmail.com> - 2017-04-04 19:44 +0200
Re: Appropriate event for change of a HTML selection list Julio Di Egidio <julio@diegidio.name> - 2017-04-04 12:05 -0700
Re: Appropriate event for change of a HTML selection list Janis Papanagnou <janis_papanagnou@hotmail.com> - 2017-04-05 15:22 +0200
Re: Appropriate event for change of a HTML selection list Julio Di Egidio <julio@diegidio.name> - 2017-04-05 07:12 -0700
Re: Appropriate event for change of a HTML selection list Julio Di Egidio <julio@diegidio.name> - 2017-04-05 07:19 -0700
Re: Appropriate event for change of a HTML selection list RobG <rgqld@iinet.net.au> - 2017-04-09 21:28 -0700
Re: Appropriate event for change of a HTML selection list "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2017-04-10 10:38 +0200
csiph-web