Browser openLocation

From TrillWiki

Jump to: navigation, search

The browser_openLocation notification is sent to a registered browser when it is the default browser for the specific protocol.

Compatibility: 2.0 and higher

Contents

Syntax

callback(int window_id, char *icontrol, "browser_openLocation", browser_location_t *data, void *userData);

Note that all Trillian functions and notifications begin with a lower-case letter, despite the Wiki requirement that all pages start with a capital letter.

Parameters

Browser openLocation utilitizes the browser_location_t structure.

struct browser_location_t {  
 	unsigned int			struct_size; 
 
 	char				*location; 
 
 	int				new_window; 
 	int				check_security; 
 };



location
The location the browser should connect to. The location is prefaced by the protocol in the format of "protocol://uri".
new_window
Specifies whether or not the location should be opened in an existing window (0) or a new window (1).


Return Value

Must return 0.

Remarks

None.



See also: browserRegister