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 » Thu May 28, 2015 3:15 pm

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: 14267
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: revBrowserOpenCef (close or exit from this browser)

Post by Klaus » Thu May 28, 2015 3:18 pm

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 » Thu May 28, 2015 3:35 pm

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: 14267
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: revBrowserOpenCef (close or exit from this browser)

Post by Klaus » Thu May 28, 2015 3:44 pm

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 » Thu May 28, 2015 4:15 pm

thanks!
now it works!

Post Reply