New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
Web Design and Hosting Creating sites, scripting, and hosting discussions.

Stack Layout?


Post Reply New Thread Subscribe

 
Thread Tools
m_leather

 
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,

Matt
QUOTE Thanks
MWSO

 
MWSO's Avatar
 
Member Since: Nov 06, 2008
Posts: 2
MWSO is on a distinguished road
Mac Specs: its the cheapest of all the leopards

MWSO is offline
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
if you find out tell me!
QUOTE Thanks

Post Reply New Thread Subscribe


« Safari Version 3.1.2 (4525.22) is 64 bit?? | .mac »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Help with Facing Pages layout (InDesign) Morgan19 OS X - Apps and Games 6 03-10-2010 01:11 AM
Using Apple's Dock Stack as a mediocre launcher giulio OS X - Operating System 2 11-06-2007 03:14 PM
1 stack broke. ivnj OS X - Operating System 6 11-01-2007 04:48 PM
japanese input - keyboard layout bad kitty OS X - Operating System 0 10-03-2007 12:36 PM
Keyboard layout wrong B&O Apple Notebooks 2 05-18-2007 11:02 AM

All times are GMT -4. The time now is 12:14 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?