I'm fairly new to Javascript. I've spend a good few hour studying Javascript, reading the Dascode manual, and peering over the sample code provided with Dashcode and simply cannot work out how to initiate a change of view in a stackLayout.
I basically want a button that will change from one view to another when clicked.
I've inserted a 'stacklayout' in the 'content' area and a button.
I've tried:
Onclick: document.getElementById("view1")
But that is clearly wrong.
What is the correct way?
Thanks in advance,
Matt
I basically want a button that will change from one view to another when clicked.
I've inserted a 'stacklayout' in the 'content' area and a button.
I've tried:
Onclick: document.getElementById("view1")
But that is clearly wrong.
What is the correct way?
Thanks in advance,
Matt