Kirix Support Forums

Correct way to set an empty page?

Please post all general questions, comments, bug reports, and any other wxWebConnect feedback here.

Correct way to set an empty page?

Postby jdx on Wed May 11, 2011 12:28 pm

I have a dialog with a web-control in, when I hide the dialog videos carry on playing which is bad if there is audio. Is there a dedicated API method to clear the page, or do I need to load "about:blank" or another special URL?
jdx
Registered User
 
Posts: 17
Joined: Wed Jan 19, 2011 2:35 pm

Re: Correct way to set an empty page?

Postby jonmmorgan on Thu May 12, 2011 5:46 am

I think loading about:blank is a fairly "official" way to do it. Certainly in the wxWebConnect source it loads about:blank when the wxWebControl is created.
jonmmorgan
Registered User
 
Posts: 94
Joined: Fri May 14, 2010 9:48 am

Re: Correct way to set an empty page?

Postby jdx on Fri May 13, 2011 5:24 am

Is there a way to avoid this page being in my page history so forward/back don't include it?
jdx
Registered User
 
Posts: 17
Joined: Wed Jan 19, 2011 2:35 pm

Re: Correct way to set an empty page?

Postby jerry_mouse on Sat May 14, 2011 12:30 am

jdx wrote:Is there a way to avoid this page being in my page history so forward/back don't include it?


To monitor and manage history session entries is quite simple and straight forward.
Firstly, you have to implement the interface nsISHistoryListener, then create an instant of it and add to the session history listeners of each browser window by using nsISHistory::addSHistoryListener(nsISHistoryListener aListener)
The handle to the session history object can be obtained from nsIWebNavigation (which then can be obtained from nsIWebBrowser).
jerry_mouse
Registered User
 
Posts: 12
Joined: Sat Jan 09, 2010 5:11 am

Return to wxWebConnect Questions, Thoughts & Feedback