Results 1 to 2 of 2

Thread: Stack Layout?

  1. #1

    Member Since
    Jul 12, 2008
    Stack Layout?
    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,


  2. #2

    MWSO's Avatar
    Member Since
    Nov 06, 2008
    its the cheapest of all the leopards
    Thumbs up Well Here Your Problem!
    i'm new too but i know this will change views in stack layout!

    var currView = document.getElementById("elementID");

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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. alias in stack
    By eplymale3043 in forum OS X - Operating System
    Replies: 4
    Last Post: 02-26-2010, 08:52 AM
  2. 7 tricks for stack
    By guriman in forum OS X - Apps and Games
    Replies: 0
    Last Post: 02-01-2009, 06:32 PM
  3. DASHCODE!!!!!!! help me with stack layout
    By MWSO in forum OS X - Development and Darwin
    Replies: 0
    Last Post: 11-06-2008, 07:33 PM
  4. Can you alphabetize a stack?
    By billwill in forum OS X - Apps and Games
    Replies: 4
    Last Post: 04-28-2008, 07:39 AM
  5. 1 stack broke.
    By ivnj in forum OS X - Operating System
    Replies: 6
    Last Post: 11-01-2007, 04:48 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts