Page 1 of 1

Funny revbrowser behaviour

Posted: Thu Apr 23, 2009 9:23 pm
by Andycal
Sorry if this is a vague question, but i've got some funny behaviour in Revbrowser that's got me confused.

I'm using code pretty much lifted from the demo stack. I pop a browser on the page and add a button that pops google into it. Easy enough, works fine.

Right, now it gets funny. I alter the code to go to a different page, press my button again and it loads the new page, however, if I click on it, Google is still underneath and the image seems to be a mixture of the two.

Should I be clearing something out before opening the new page?

Re: Funny revbrowser behaviour

Posted: Fri Apr 24, 2009 6:15 am
by HankT
Andycal wrote: Google is still underneath and the image seems to be a mixture of the two.

Should I be clearing something out before opening the new page?
Your code likely has "BrowserNewInstance" in it which will create a new browser object each time it's run.

Posted: Fri Apr 24, 2009 6:44 am
by Andycal
Yup - turns out I wasn't closing it properly. Thanks for the pointer!