Open & close revBrowser
Posted: Mon Jun 09, 2014 11:21 pm
				
				Hi there,
I'm still a complete newbie with livecode. Well, I want to create a card with a button that makes the revBrowser load a web page into a rectangle. Then I'd like to make a second button to close the revBrowser again und delete the cache.
I got the first button to work:
That works so far, but I can't make the second button close that revBrowser again. When I put revbrowserclose gBrowserID in the code it always says unknown browser id. Maybe you guys know how I can make the button close the browser again.
Thanks,
Patrick
			I'm still a complete newbie with livecode. Well, I want to create a card with a button that makes the revBrowser load a web page into a rectangle. Then I'd like to make a second button to close the revBrowser again und delete the cache.
I got the first button to work:
Code: Select all
on mouseUp
       put "http:/..." into myUrl
       put the windowID of this stack into myID
      put revBrowserOpen(myID,"") into gBrowserID
      revBrowserSet gBrowserId, "rect", rect of graphic "browser"
      revBrowserSet gBrowserID,"url",myUrl
      revBrowserSet gBrowserID,"visible",true
end mouseUp
Thanks,
Patrick