Why Browser Rect appears in all other cards automatically?

Bringing the internet highway into your project? Building FTP, HTTP, email, chat or other client solutions?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
alex298
Posts: 101
Joined: Mon May 01, 2006 1:17 pm

Why Browser Rect appears in all other cards automatically?

Post by alex298 » Mon May 28, 2007 3:44 am

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
Alex
Nice to meet all of you.

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5150
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Post by Mark » Mon May 28, 2007 9:14 am

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 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

Post Reply

Return to “Internet”