Thread: Stack Layout?
View Single Post

Member Since: Jul 12, 2008
Posts: 2
m_leather is on a distinguished road

m_leather is offline
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,

QUOTE Thanks