revBrowser displays nothing
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- VIP Livecode Opensource Backer
- Posts: 37
- Joined: Wed Apr 11, 2012 1:43 pm
revBrowser displays nothing
Hi
I am having a very basic problem in that revBrowser does not display ANYTHING. I now reverted to RunRev supplied example code n(see below) and still nothing is displayed. I did build in some answer commands at every point and all the variables are OK - I tried LC 5.5 and 6.1 (both commercial licenses) and same problem. Any suggestions where I can look for something I need to change (in the setup even?)
Regards
Danny
local lBrowserID
on openCard
browserOn
end openCard
on browserOn
put the windowID of this stack into tWinID
put revBrowserOpen(tWinID, "http://google.com") into tBrowserID
if tBrowserID is not an integer then
answer "Failed to open browser." & tBrowserID
exit browserOn
end if
put tBrowserID into lBrowserID
answer ("Browser ID" & tBrowserID) with "Ok"
revBrowserSet lBrowserID, "showborder", true
revBrowserSet lBrowserID, "rect", the rect of graphic "browser"
end browserOn
on browserBeforeNavigate pID, pURL
global browserCancel
if "google.com" is not in pURL then
answer warning "Can't navigate to a domain ouside google.com."
put true into browserCancel
end if
end browserBeforeNavigate
on closeCard
browserOff
end closeCard
on browserOff
if lBrowserID is an integer then
revBrowserClose lBrowserID
end if
put empty into lBrowserID
end browserOff
I am having a very basic problem in that revBrowser does not display ANYTHING. I now reverted to RunRev supplied example code n(see below) and still nothing is displayed. I did build in some answer commands at every point and all the variables are OK - I tried LC 5.5 and 6.1 (both commercial licenses) and same problem. Any suggestions where I can look for something I need to change (in the setup even?)
Regards
Danny
local lBrowserID
on openCard
browserOn
end openCard
on browserOn
put the windowID of this stack into tWinID
put revBrowserOpen(tWinID, "http://google.com") into tBrowserID
if tBrowserID is not an integer then
answer "Failed to open browser." & tBrowserID
exit browserOn
end if
put tBrowserID into lBrowserID
answer ("Browser ID" & tBrowserID) with "Ok"
revBrowserSet lBrowserID, "showborder", true
revBrowserSet lBrowserID, "rect", the rect of graphic "browser"
end browserOn
on browserBeforeNavigate pID, pURL
global browserCancel
if "google.com" is not in pURL then
answer warning "Can't navigate to a domain ouside google.com."
put true into browserCancel
end if
end browserBeforeNavigate
on closeCard
browserOff
end closeCard
on browserOff
if lBrowserID is an integer then
revBrowserClose lBrowserID
end if
put empty into lBrowserID
end browserOff
-
- VIP Livecode Opensource Backer
- Posts: 3901
- Joined: Sat Mar 24, 2007 2:54 am
- Location: Palo Alto
Re: revBrowser displays nothing
Hi Danny,
I think you are missing a graphic "browser".
Your code works fine here.
Maybe you used an image object rather than graphic?
Simon
I think you are missing a graphic "browser".
Your code works fine here.
Maybe you used an image object rather than graphic?
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
-
- Posts: 4
- Joined: Sun Jul 21, 2013 1:50 am
Re: revBrowser displays nothing
I have found that if the backdrop is turned on in the LiveCode application, the web page will not be drawn on the screen when using revBrowserOpen. Turning off the backdrop solves the problem. Hope that helps.
LiveCode 4.6.1
MacBook Pro
OSX 10.7.5
Philip
LiveCode 4.6.1
MacBook Pro
OSX 10.7.5
Philip
Re: revBrowser displays nothing
Could someone please bug report this?
Otherwise this won't get fixed, thank you!
Write to -> bugs@runrev.com
Otherwise this won't get fixed, thank you!
Write to -> bugs@runrev.com
-
- VIP Livecode Opensource Backer
- Posts: 37
- Joined: Wed Apr 11, 2012 1:43 pm
Re: revBrowser displays nothing
Hi
Thanks guys - thats 100% the problem - removed the backdrop and it all works fine. Had it before and solved it in the same way and somehow did not remember it and it was driving me up the wall.
I agree Klaus, I will report it as a bug.
Regards
Danny
Thanks guys - thats 100% the problem - removed the backdrop and it all works fine. Had it before and solved it in the same way and somehow did not remember it and it was driving me up the wall.
I agree Klaus, I will report it as a bug.
Regards
Danny
-
- VIP Livecode Opensource Backer
- Posts: 37
- Joined: Wed Apr 11, 2012 1:43 pm
Re: revBrowser displays nothing
This was reported as a bug on: 2007-11-29 09:16 CET by Ludovic THEBAULT and Modified: 2012-08-31 08:45 CEST to be "HIBERNATED" - which in essence means it is a known bug and "live with it". http://quality.runrev.com/show_bug.cgi?id=5635
Regards
Danny
Regards
Danny
Re: revBrowser displays nothing
Oh, I already reported this in 2007?!
Sorry, completely forgot about this
Sorry, completely forgot about this
-
- VIP Livecode Opensource Backer
- Posts: 37
- Joined: Wed Apr 11, 2012 1:43 pm
Re: revBrowser displays nothing
Hi Klaus
It has only been 6 years - how could you forget?
You are forgiven !
Regards
Danny
It has only been 6 years - how could you forget?
You are forgiven !
Regards
Danny
Re: revBrowser displays nothing
Well, I reorted A LOT of bugs to Runrev in the last > 10 years , so this is surely excusable
Re: revBrowser displays nothing
Hello, I have the same problem with revBrowser which doesn't display nothing on my Android device.
How do you do to "turn off the backdrop" please ?
Best Regards.
Loïc
How do you do to "turn off the backdrop" please ?
Best Regards.
Loïc
Re: revBrowser displays nothing
Hi Loïc,
"backdrop" is more a .esktop problem, and since it is not tirned ON per default on the mobile
platform, this might not be the problem, unless you have set the backdrop explicitely in your script(s).
Whichj I doubt
What did you script so far?
I think the syntax is a bit different on mobile than for desktop machines.
Best
Klaus
"backdrop" is more a .esktop problem, and since it is not tirned ON per default on the mobile
platform, this might not be the problem, unless you have set the backdrop explicitely in your script(s).
Whichj I doubt
What did you script so far?
I think the syntax is a bit different on mobile than for desktop machines.
Best
Klaus