|
Pollyanna posted:What experience have you guys had with Knockout.js? Is it like a replacement for Angular or something, or is it totally different from that? It's way more low level, really it's whole purpose is the model binding. I love it, but it's very bare bones. Before, for a task like this, you'd have jquery all over the place, updating the UI when a value changes. With knockout, you just change a property on your JS object, and the changes ripple throughout your bindings. I mean, just look at the documentation (http://knockoutjs.com/documentation/introduction.html), that's really about all you can do with it. Bind to HTML properties, bind to click events and some control logic (if, foreach). The live examples really make it click, what you do with it after that is up to you.
|
# ¿ Dec 4, 2013 19:08 |
|
|
# ¿ May 2, 2024 03:03 |
|
NovemberMike posted:To clarify, the tech will never be here because what you are talking about is fundamentally a bad idea. The problem is generally solved by wrapping the database in an API of some kind and then having the client query against the API. The goal is to never allow the client to say "I want to run SQL", you let them say "I want data" or "I want to write data" instead. [20 pages of that Super Meat Boy hi score mysql fiasco]
|
# ¿ Dec 12, 2013 01:46 |
|
Pollyanna posted:...Incidentally, I'm thinking about another approach. Is it possible to disable the input box "border" on an unfocused input box, such that it looks like the input is text before you click on it, or is there a better way to do what I'm describing? Like this, right? http://www.appelsiini.net/projects/jeditable/default.html
|
# ¿ Mar 21, 2014 17:53 |
|
Corla Plankun posted:This is a really dumb question but I am having a hard time figuring out how to approach finding a solution. code:
|
# ¿ Apr 16, 2014 23:03 |