Posts

Showing posts with the label eval

Intel XDK: Controls 7: Using the Console Widget

Image
Sometimes you want to display what is written to the Console and you can use this widget. It is quite simple to use. The Console widget is here in Intel XDK. It is in the 'Other' category. ConsoleWidget_00 Start a new blank, Standard HTML5 project in Intel XDK (version 3400 used in this post). Enable the Use App Designer checkbox. Add a button to the page by dragging and dropping a Button from the 'Buttons' category. Use the Go button widget. The button's Label is 'Button'. Place check mark for ID and provide an ID, herein bt1. ConsoleWidget_01 Add a Console widget below the button as shown by dragging and dropping. ConsoleWidget_02 This and the button adds the following HML fragment to the index.html page. ConsoleWidget_03 The eval button evaluates the string expression and sends it to the textarea in the above fragment. Test this control using some expressions after bringing up the page in the emulator. Use any emulato...