Stack Layout?

Joined
Jul 12, 2008
Messages
2
Reaction score
0
Points
1
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
 
Joined
Nov 6, 2008
Messages
2
Reaction score
0
Points
1
Your Mac's Specs
its the cheapest of all the leopards
Well Here Your Problem!

i'm new too but i know this will change views in stack layout!

var currView = document.getElementById("elementID");
stackLayout.object.setCurrentView(currView,false);

i am now trying to get it to do transitions so don't ask me about that:D
if you find out tell me!
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top