Browser not visible

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Browser not visible

Post by Simon » Tue Mar 05, 2013 12:20 am

Hi Marek,
You and Sturgis have already done a lot of work on this and I doubt I can find an answer.
But using the attached basic LC browser what do you do to show the error?
InetBrowser.zip
LC 5x
(16.34 KiB) Downloaded 164 times
What changes do you make to the browser?

I ask because revBrowser works for me and maybe using this stack as a starting point you can find the problem.
Oh... revBrowser uses Safari or IE, is it possible that your native browser is having troubles as well with the url?

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

snm
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 253
Joined: Fri Dec 09, 2011 11:17 am

Re: Browser not visible

Post by snm » Tue Mar 05, 2013 10:52 am

Hi Simon,

I downloaded your stack, and it shows wrong behaviour after first my test:

1. open the stack - you can see the content in the browser
2. from Message Box run

Code: Select all

set the visible of stack "InetBrowser" to FALSE
3. From Message Box run

Code: Select all

set the visible of stack "InetBrowser" to TRUE
In my test in first trial after set visibility of the stack back to TRUE the stack is visible, but the content of browser is invisible.

This problem doesn't exist with Safari tested the same way, so it's not the fault of Safari as engine used. I think there is something blocking visibility of existing content in browser when the LC stack is sent to visible state from hidden one. As I mentioned before, in such situation there is not working revBrowserRefresh and revBrowserRedraw commands also. I'm sure the content of browser is OK checking revBrowserGet function - it returns the same html text in both situations (visible and invisible content of browser).

I'm almost sure it's a bug. Wondering nobody experienced this problem so long time until now.
Could somebody check for me if this behaviour exist on Windows platform also?

Marek

snm
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 253
Joined: Fri Dec 09, 2011 11:17 am

Re: Browser not visible

Post by snm » Tue Mar 05, 2013 11:04 am

One more experience testing your stack Simon:
1. Until you set the visible property of stack to FALSE and then to TRUE "Refresh" and "Go" buttons works as expected.
2. After that when the content of browser starts to be invisible, clicking those buttons doesn't make the content of browser visible. Even if you change the url address!

You must close browser instance and open it again to work (until you set the visible of stack to false and back to true). Apparently hiding and showing back the stack destroys something in browser instance breaking refresh possibility.

Marek

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Browser not visible

Post by Simon » Tue Mar 05, 2013 10:39 pm

Hi Marek,
I see now.
It probably is already listed as a bug, the revBrowser isn't like any other control in LC. I'm sure you've seen other odd things it does like no other controls show above the rect.
We just have to wait and see if the new browser will act like other controls.

Simon
EDIT: I didn't mean that you shouldn't try to find a workaround, I've just tried setting the loc off screen but that didn't work either.
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

snm
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 253
Joined: Fri Dec 09, 2011 11:17 am

Re: Browser not visible

Post by snm » Wed Mar 06, 2013 7:34 am

Thanks a lot Simon for bad news :(
It was the last part of my big job on which I was working over 3 months.
Now I know I can't finnish it at the end of the job for longer time.

Marek

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Browser not visible

Post by Simon » Wed Mar 06, 2013 7:46 am

Hi Marek,
Not my fault honest! I just remember working with revBrowser a few years back and seeing the differences.
But you do mention that closing the browser seems to work, no chance of using that instead of hide? Finding a workaround is your only option, I think.
Oh, and another hint, only another substack will show up in front of the revBrowser rect, could that help?

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

snm
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 253
Joined: Fri Dec 09, 2011 11:17 am

Re: Browser not visible

Post by snm » Wed Mar 06, 2013 8:04 am

Simon,

I didn't say it's your fault. Never. I appreciate your help and thanks once more.

Closing browser before hiding the card and then opening it after making the card visible works in 50%, not stable. I could try to close completely this substack, but don't know if and how it will work in standalone. Must try.

Covering it by another substack or main stack makes the same problem as hiding it.

Marek

bn
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4172
Joined: Sun Jan 07, 2007 9:12 pm

Re: Browser not visible

Post by bn » Wed Mar 06, 2013 8:38 am

Hi Marek,

I have no idea what is going on but I tried to just move the stack off screen instead of hiding it, I used Simons stack to test it.

Code: Select all

on mouseUp
   put the loc of stack "InetBrowser" into tLocation
   set the loc of stack "InetBrowser" to -10000,-10000
   wait 2 seconds
   set the loc of stack "InetBrowser" to tLocation
end mouseUp
and in the few tests I made it worked well. Of course it is a workaround but if that works for you then it is maybe better than to loose 3 months of work.

Kind regards
Bernd

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am

Re: Browser not visible

Post by Simon » Wed Mar 06, 2013 8:53 am

Nice! Move the whole stack!

Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

snm
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 253
Joined: Fri Dec 09, 2011 11:17 am

Re: Browser not visible

Post by snm » Thu Mar 07, 2013 10:22 am

Hi Bernd,

Thanks for your care about my problem.
I'll check it today and let you know. I played little bit with simple test file and it seams it should work. Now I must implement all the changes to my project and test it.

Thanks a lot once more. As usual the simple already known methods are forgotten.

Marek

Post Reply