Load a new URL on current browser window

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Load a new URL on current browser window

Postby Moreno77 » Sat Mar 19, 2016 5:43 pm

Hi,

How can I load a new URL on the current active browser window?
Is there any Load API to use?
Moreno77
Techie
 
Posts: 13
Joined: Wed Mar 09, 2016 3:37 am

Re: Load a new URL on current browser window

Postby fddima » Sat Mar 19, 2016 7:08 pm

Hi,

Check CefFrame's LoadURL.
You can obtain main frame via CefBrowser's GetMainFrame() method.
fddima
Master
 
Posts: 788
Joined: Tue Dec 07, 2010 6:10 am

Re: Load a new URL on current browser window

Postby johnrdorazio » Wed Oct 14, 2020 5:12 am

Not sure if things have changed over different versions, but using version 1.0.10-84.3.8 I'm finding the LoadURL() method on the CefBrowser object, not on the CefFrame object.
johnrdorazio
Newbie
 
Posts: 5
Joined: Wed Oct 14, 2020 3:04 am

Re: Load a new URL on current browser window

Postby ndesktop » Thu Oct 15, 2020 4:00 am

johnrdorazio wrote:Not sure if things have changed over different versions, but using version 1.0.10-84.3.8 I'm finding the LoadURL() method on the CefBrowser object, not on the CefFrame object.


Correct.
For some reason CefFrame does not have a loadUrl method.
If that method existed, browser.loadUrl = browser.getMainFrame.loadUrl.
ndesktop
Master
 
Posts: 756
Joined: Thu Dec 03, 2015 10:10 am


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 100 guests