I have been working from the InetBrowser stack provided in the browser sampler. I got the provided stack modified to my liking. When I try to reproduce the card in another stack, the new card works fine, but the browserimage is appearing on all cards in the stack.
I don't have a clue as to why this is occurring.
Any ideas?
Thanks,
browserimage on all pages
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
browserimage on all pages
Alex Adams
(a)2 Technology Parnters
alex@a2technology.com
www.a2technology.com
www.promisstudio.com
831-726-8013
(a)2 Technology Parnters
alex@a2technology.com
www.a2technology.com
www.promisstudio.com
831-726-8013
-
- VIP Livecode Opensource Backer
- Posts: 977
- Joined: Sat Apr 08, 2006 7:47 am
- Contact:
Hi Alex,
The 'browser' external control is a special and sometimes tricky pet to tame. In fact, what happens is that a browser is 'overlaid' on top of the stack window; but it doesn't know when you switch cards, that it should hdie itself, so that's your job; put something like this in the card script of the card where you want the browser to show:
This way, the first time the card is opened, the browser is setup and initialized; when you leave the card, it is hidden, and when you come back, it is shown once again.
HTH,
Jan Schenkel.
The 'browser' external control is a special and sometimes tricky pet to tame. In fact, what happens is that a browser is 'overlaid' on top of the stack window; but it doesn't know when you switch cards, that it should hdie itself, so that's your job; put something like this in the card script of the card where you want the browser to show:
Code: Select all
local sBrowserId
on openCard
if sBrowserId is empty then
put revBrowserOpen(the windowid of this stack, "about:blank") into sBrowserId
-- finish setting up the rect etc.
else
revBrowserSet sBrowserId, "visible", "true"
end if
end openCard
on closeCard
if sBrowserId is not empty then
revBrowserSet sBrowserId, "visible", "false"
end if
end closeCard
HTH,
Jan Schenkel.
Quartam Reports & PDF Library for LiveCode
www.quartam.com
www.quartam.com
Thanks Jan
Thank you. That is what I needed to know.
Alex Adams
(a)2 Technology Parnters
alex@a2technology.com
www.a2technology.com
www.promisstudio.com
831-726-8013
(a)2 Technology Parnters
alex@a2technology.com
www.a2technology.com
www.promisstudio.com
831-726-8013