Page 1 of 1

open or go one stack to another

Posted: Tue Dec 08, 2009 9:55 pm
by bobosquish
This seems awfully basic, but it ain't working for me. I have a stack1 with a button script:

on mouseUp
go stack "stack2"
end mouseUp

It works great in the revmedia application, but when I build it for the web, the button press does nothing. Help?

Re: open or go one stack to another

Posted: Tue Dec 08, 2009 11:01 pm
by bn
bobosquish,
welcome to the forum.
Jacqueline posted a how-to
http://jacque.on-rev.com/codebits/dualrevlets.irev
don't be intimidated by the javascript. The main point is that the id of the two stacks have to be the same. Tweak for placement. Jacqueline explains it in detail. Ask if stuck.
regards
Bernd

Re: open or go one stack to another

Posted: Wed Dec 09, 2009 2:36 pm
by bobosquish
I've tried the technique Jacque outlined. My situation is a little bit different. Her two stacks do not overlap visually, mine do. Stack1 is displayed; when I press a button, the display should change to stack 2. I can't get that to work with different stacks or substacks. I've tried hiding the first stack before opening the second. The first stack remains visible, but is no longer active (can't click buttons). The second stack does not appear.

Re: open or go one stack to another

Posted: Wed Dec 09, 2009 2:50 pm
by Klaus
Hi Bobo,

unfortunately, Revlets can only disply ONE stack in the window, although it was advertised.
Anyway, the only thing you can do is, supposed your two stacks have identical dimensions (width and height),
...
go stack "the substack" in window of this stack
...

Not tested, but this should be working (so they say :-))
Hope that helps.


Best

Klaus

Re: open or go one stack to another

Posted: Wed Dec 09, 2009 3:23 pm
by bobosquish
Thanks, Klaus. I tried your idea, but that did not work either. I think we're stuck with one stack displayed in a revlet.

Re: open or go one stack to another

Posted: Wed Dec 09, 2009 6:22 pm
by bn
Bobo,
I cant get a stack to hide in a revlet, setting its blendlevel to 100 does not work either. But you can hide elements of your stack like fields and so on. And you can go to another card on your stack. So with a little change in the user interface and the way you set up your stacks in the revlet you can do a lot of things. Think of it like a tabbed button. There also you hide and show fields buttons etc.
Just experiment a bit.
regards
Bernd

Re: open or go one stack to another

Posted: Wed Dec 09, 2009 6:43 pm
by bobosquish
bn,

That's what I'm doing for now. Because my app includes multiple databases, I want to store each in their own stack just to keep the data files separate.

bobo