revBrowserOpenCef (close or exit from this browser)

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

Post Reply
chris0879
Posts: 6
Joined: Thu May 28, 2015 2:59 pm

revBrowserOpenCef (close or exit from this browser)

Post by chris0879 »

how close the following browser?

Code: Select all

 on mouseUp

put revBrowserOpenCef(the windowId of this stack, "http ecc.ecc.") into tBrowserID

revBrowserSet tBrowserID, "rect", the rect of graphic "browserPlaceholder"

end mouseUp    
which method to exit only the browser (revBrowserOpenCef) ?
Thanks in advance!!!
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: revBrowserOpenCef (close or exit from this browser)

Post by Klaus »

Hi Chris,

no special CEF command, just:
...
revbrowserclose tBrowserID
...
:D


Best

Klaus
chris0879
Posts: 6
Joined: Thu May 28, 2015 2:59 pm

Re: revBrowserOpenCef (close or exit from this browser)

Post by chris0879 »

on mouseUp

revbrowserclose tBrowserID
end mouseUp


//this error display

Type unknown browser id
Object Answer
Line revbrowserclose tBrowserID
Hint unknown browser id

thanks!
Klaus
Posts: 14324
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: revBrowserOpenCef (close or exit from this browser)

Post by Klaus »

Hi Chris,

make sure tBrowserID is either declared as LOCAL or GLOBAL!


Best

Klaus
chris0879
Posts: 6
Joined: Thu May 28, 2015 2:59 pm

Re: revBrowserOpenCef (close or exit from this browser)

Post by chris0879 »

thanks!
now it works!
Post Reply