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
Why Browser Rect appears in all other cards automatically?
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Why Browser Rect appears in all other cards automatically?
Alex
Nice to meet all of you.
Nice to meet all of you.
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
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
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode