CrossBrowdy - Basic tutorial

General

Options

Some options can be set before starting the CrossBrowdy framework (before calling the CB_init function). This is an example:


	//Sets desired options before starting:
	var CB_OPTIONS =
	{
		//Options for CrossBrowdy (general options):
		CrossBrowdy:
		{
			CB_console_ALLOW_ALERTS: false //It will not show alerts in the browsers that doesn't have console.
		},
		//Options for the CrossBase module (main module):
		CrossBase:
		{
			CB_LOAD_SLCANVAS: true //Forces to load SLCanvas.
		}
	};
	
	//Starts CrossBrowdy:
	CB_init(main); //It will call the "main" function when ready.

Note that some options belong to the CrossBrowdy framework and others belong to CrossBase which is its main module (base module). It is also possible to use the CB_NAME constant for "CrossBrowdy" and the CB_BASE_NAME constant for "CrossBase".

The options allowed are the same ones that support the CB_Configuration object.

Check the API documentation to read more about the CB_OPTIONS and CB_Configuration objects.

Go back to Guides & Tutorials

« PrevReturnNext »
CrossBrowdy by Joan Alba Maldonado