It's the best way to manipulate the content you see on your browser screen.
var myLabel = document.getElementById(‘myLabel’);
myLabel.className = myLabel.className + “ red”;
In JQuery however, it would be simplified to:
*Both of the above assume we have a style for class ‘red’ which controls the actual colour.
This become even more significant if we now decide we want to turn the red colour on and off when the user clicks their mouse, because in JQuery, we could simply use:
The above code is responsible for setting up all grids in Khaos Cloud including the one below, which you’ll notice does have its own filter options, but as it’s a stock list for searching purposes, does not need New Item and Delete Item buttons.
They are both very flexible and provide the tools we need to bring you the best experience we can. You may notice I referred to “front-end code” just now. The front-end in Khaos Cloud is the stuff you see on the browser screen, it’s not the coding language used to perform workhorse tasks such as calculating a sales order’s prices or perform stock movements. These actions are carried out by our server-side code.
So that about wraps up this blog post on our chosen front-end coding language.
Thank you for reading this, our second blog post on “design decisions”. If you have not already done so, please sign-up today for early access to Khaos Cloud. When it is released next year we are sure it’s going to make quite a splash, so getting your name down now will put you ahead of your competition! Plus we’d love to have you along for the journey from day one, in order to gain valuable feedback as we go from Alpha testing, to Beta testing and then launch.
BACK TO TOP