OnBeforePopup popupFeatures additionalFeatures

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.

OnBeforePopup popupFeatures additionalFeatures

Postby Tiph » Tue Aug 19, 2014 5:02 am

Hi,

I'd like to pass some custom parameters to my window.

I tried to look into additionalFeatures in popupFeatures but its a void*, i tried to cast it in string with :

Code: Select all
std::string *sp = static_cast<std::string*>(popupFeatures.additionalFeatures)
std::string s = *sp;


but what i get is irrelevant.

i'am using the 2062 build
Tiph
Techie
 
Posts: 13
Joined: Mon Aug 11, 2014 12:01 pm

Re: OnBeforePopup popupFeatures additionalFeatures

Postby magreenblatt » Tue Aug 19, 2014 6:43 am

You're better off encoding any additional information in the URL, or waiting for the URL to load and then communicating via JS.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: OnBeforePopup popupFeatures additionalFeatures

Postby Tiph » Tue Aug 19, 2014 7:00 am

so additionalFeatures can not be used ?
Tiph
Techie
 
Posts: 13
Joined: Mon Aug 11, 2014 12:01 pm

Re: OnBeforePopup popupFeatures additionalFeatures

Postby Tiph » Tue Aug 19, 2014 7:30 am

what type additionalFeatures is ?
Tiph
Techie
 
Posts: 13
Joined: Mon Aug 11, 2014 12:01 pm

Re: OnBeforePopup popupFeatures additionalFeatures

Postby magreenblatt » Tue Aug 19, 2014 7:43 am

additionalFeatures is a cef_string_list_t, see the functions in include/internal/cef_string_list.h. Note however that values passed to window.open in JavaScript will not necessarily be passed to the C++ code.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 52 guests