Page 1 of 1
Browser group won't disappear !
Posted: Fri May 02, 2014 2:23 am
by michel_bujardet
I have built the browser example described at
http://lessons.runrev.com/s/lessons/m/4 ... er-control
It works fine, but when I try to go to another card, the browser area (group "Browser") sticks to the screen. The card changes (I can see the new card behind), but the browser area stays over.
I tried to set the visible of group "Browser" to False, but it does nothing.
Searched this forum but could not find mention of this problem.
How can I get rid of the browser when I move to another card ?
Thank you.
Re: Browser group won't disappear !
Posted: Fri May 02, 2014 2:42 am
by Dixie
You have two choices here...
1. You can destroy the browser instance as you leave the card
2. Just hide it, if you just want to build it the one time and use it again when you come back to the card on which it displays
Code: Select all
mobileControlSet theBrowserID, "visible", "false"
Re: Browser group won't disappear !
Posted: Fri May 02, 2014 9:11 am
by michel_bujardet
Dixie wrote:You have two choices here...
1. You can destroy the browser instance as you leave the card
2. Just hide it, if you just want to build it the one time and use it again when you come back to the card on which it displays
Code: Select all
mobileControlSet theBrowserID, "visible", "false"
Thank you Dixie.
Amazingly enough, the delete command was already there but somehow the variable "sBrowserId" that is supposed to keep the browser ID from its creation in PreOpenCard is not accessible from the other handlers. It was declared as
on top of the card script. I tried
but still sBrowserId seems valid only in PreOpenCard. I have replaced it by its ID (1) and the hide or delete work, but the browser does not show the second time the card is displayed.
Now I have to figure out what is going on.
Re: Browser group won't disappear !
Posted: Fri May 02, 2014 9:37 am
by Dixie
I have posted a stack...
It has two cards, the browser is built the first time you go to the second card
You can then move between the two cards and the browser will be hidden or shown, depending if you are on the first or second card
The handlers are in the card script of the second card...
hope it helps...

Re: Browser group won't disappear !
Posted: Fri May 02, 2014 12:29 pm
by michel_bujardet
Dixie wrote:I have posted a stack...
It has two cards, the browser is built the first time you go to the second card
You can then move between the two cards and the browser will be hidden or shown, depending if you are on the first or second card
The handlers are in the card script of the second card...
hope it helps...

Thank you so much Dixie. You are great
