Page 1 of 1

Why Browser Rect appears in all other cards automatically?

Posted: Mon May 28, 2007 3:44 am
by alex298
Hello,

I use the Demo Browser to develop a small project. However I noticed the Browser Rect will embed in all new cards automatically.

I tried to move the Demo Browser card to a sub-stack. I found that the browser embedded in all other cards in this sub-stack automatically too.

Actually I only need a card in the main stack to have a browser while other cards are doing other things. How can I do that?

Thanks and best regards

Posted: Mon May 28, 2007 9:14 am
by Mark
Hi Alex,

The browser is not really embedded on cards, it is actually a window drawn over a stack window. The browser window doesn't know when a different card opens; it doesn't even know if its parent window has closed.

You need to write a closecard script, which removes the browser window. Probably, you also want an openCard script, which opens the browser window. I would prefer, however, to have the browser window on a separate stack window, which just stays visible and changes its contents as necessary.

Best,

Mark