-
Book Overview & Buying
-
Table Of Contents
Easy Web Development with WaveMaker
By :
We've examined the building blocks of using custom JavaScript page code in a WaveMaker application. Unfortunately, being armed with this knowledge does not preclude you from staring at the flashing cursor of a source editor knowing what you want to do but having no idea of how to achieve it.
Fortunately, there is an array of resources available to us to help guide us to the desired syntax. Let's review our options.
The Chrome Developer Tools console, and others such as Firebug, provides command-line completions. The console displays a dialog of possible completions. As shown in the following screenshot, we've entered main.varCustomer.setD and the console is showing us all the members of the main page's varCustomer object that start with setD:

Completions are context-sensitive, meaning that when used in a breakpoint of page code, this refers to the current and inSender refers to the sending object it is the same context as page code. This can be an incredibly useful way...
Change the font size
Change margin width
Change background colour