<?xml version="1.0" encoding="utf-8" standalone="yes"?>

<?xml-stylesheet href="./_c74_ref.xsl" type="text/xsl"?>

<!--This is an automatically generated file. DO NOT EDIT THIS FILE DIRECTLY. Rather, use the _ref.xml files found in the 'edits' folder.-->
<c74object name="jweb" module="max" category="U/I">
	<digest>
		Web browser
	</digest>
	<description>
		The <o>jweb</o> object uses the cross-platform Chromium Embedded Framework (CEF) to view renderable data in a Max box.
	</description>
	<!--METADATA-->
	<metadatalist>
		<metadata name="author">
			Cycling '74
		</metadata>
	</metadatalist>
	<palette category="Interface" action="jweb" pic="jweb.svg" />
	<!--INLETS-->
	<!--OUTLETS-->
	<!--ARGUMENTS-->
	<objarglist />
	<!--MESSAGES-->
	<methodlist>
		<method name="anything">
			<arglist />
			<digest>
				Send messages
			</digest>
			<description>
				You can send any message to the JavaScript of the contained website. In order to be able to receive messages make sure to setup the JavaScript as described in the <link type="vignette" module="core" name="jwebcommunication">Communicating with Max from within jweb</link> guide.
			</description>
		</method>
		<method name="back">
			<arglist />
			<digest>
				The word <m>back</m> reloads the previous page of data, functioning like the 'Back' button in a conventional web browser.
			</digest>
			<description>
				The word <m>back</m> reloads the previous page of data, functioning like the 'Back' button in a conventional web browser.
			</description>
		</method>
		<method name="executejavascript">
			<arglist>
				<arg name="script" type="symbol" optional="0" />
			</arglist>
			<digest>
				Execute JavaScript
			</digest>
			<description>
				Using <m>executejavascript</m> you can inject and run a JavaScript code snippet in the currently displayed website. The provided code will be inserted and executed in a new script tag.
			</description>
		</method>
		<method name="forward">
			<arglist />
			<digest>
				When a sequence of multiple pages has been loaded, and the object has received the <m>back</m> message, the word <m>forward</m> will advance to the following page in the object's page history.
			</digest>
			<description>
				When a sequence of multiple pages has been loaded, and the object has received the <m>back</m> message, the word <m>forward</m> will advance to the following page in the object's page history. <m>forward</m> functions like the 'Forward' button in a conventional web browser.
			</description>
		</method>
		<method name="(mouse)">
			<digest>
				TEXT_HERE
			</digest>
			<description>
				TEXT_HERE
			</description>
		</method>
		<method name="read">
			<arglist>
				<arg name="url" optional="0" type="symbol" />
			</arglist>
			<digest>
				The word <m>read</m>, followed by a symbol that specifies a URL or a file pathname, will read the webpage or file and attempt to render its contents.
			</digest>
			<description>
				The word <m>read</m>, followed by a symbol that specifies a URL or a file pathname, will read the webpage or file and attempt to render its contents. Upon successful load of a page, two messages are sent from the object's outlet: <m>url</m>, followed the final URL which was loaded based on the provided argument; and <m>title</m>, followed by the title of the loaded page as a symbol.
			</description>
		</method>
		<method name="readfile">
			<arglist>
				<arg name="file path" optional="1" type="symbol" />
			</arglist>
			<digest>
				The word <m>readfile</m>, followed by a symbol that specifies a file pathname, will read the file and attempt to render its contents.
			</digest>
			<description>
				The word <m>readfile</m>, followed by a symbol that specifies a file pathname, will read the file and attempt to render its contents. The word <m>readfile</m> with no argument opens a file dialog to choose a file. Upon successful load of a page, two messages are sent from the object's outlet: <m>url</m>, followed the final URL which was loaded based on the provided argument; and <m>title</m>, followed by the title of the loaded page as a symbol.
			</description>
		</method>
		<method name="reload">
			<arglist />
			<digest>
				The word <m>reload</m> causes the browser to refresh the current page, functioning like the 'Reload' button in a conventional web browser.
			</digest>
			<description>
				The word <m>reload</m> causes the browser to refresh the current page, functioning like the 'Reload' button in a conventional web browser.
			</description>
		</method>
	</methodlist>
	<!--ATTRIBUTES-->
	<attributelist>
		<attribute name="rendermode" get="1" set="1" type="int" size="1">
			<digest>
				Set page rendering style
			</digest>
			<description>
				Set page rendering style. When set to ‘offscreen’, jweb will first render to an offscreen buffer, then draw to the patcher. This mode is slower, but useful if you need UI elements to appear in front of the jweb object. When set to ‘onscreen’, jweb will render faster, but render directly in the patcher (without using an offscreen buffer) and over any other UI elements. When set to 'onscreen with transparent background', the background of the jweb object will be rendered transparently.
			</description>
			<attributelist>
				<attribute name="enumvals" get="1" set="1" type="atom" size="3">
					<enumlist>
						<enum name="Offscreen">
							<digest>
								TEXT_HERE
							</digest>
							<description>
								TEXT_HERE
							</description>
						</enum>
						<enum name="Onscreen">
							<digest>
								TEXT_HERE
							</digest>
							<description>
								TEXT_HERE
							</description>
						</enum>
						<enum name="Offscreen with Transparent Background">
							<digest>
								TEXT_HERE
							</digest>
							<description>
								TEXT_HERE
							</description>
						</enum>
					</enumlist>
				</attribute>
				<attribute name="save" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="style" get="1" set="1" type="symbol" size="1" value="enumindex" />
			</attributelist>
		</attribute>
		<attribute name="url" get="1" set="1" type="symbol" size="1">
			<digest>
				Current URL
			</digest>
			<description>
				Displays the current URL being displayed.
			</description>
			<attributelist>
				<attribute name="basic" get="1" set="1" type="int" size="1" value="1" />
				<attribute name="default" get="1" set="1" type="symbol" size="1" value="" />
				<attribute name="label" get="1" set="1" type="symbol" size="1" value="Initial URL" />
				<attribute name="save" get="1" set="1" type="int" size="1" value="1" />
			</attributelist>
		</attribute>
	</attributelist>
	<!--EXAMPLE-->
	<examplelist>
		<example />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="jwebcommunication" module="core" type="vignette" />
		<seealso name="js" />
		<seealso name="maxurl" />
		<seealso name="javascriptchapter01" module="max" type="tutorial" />
		<seealso name="javascriptchapter02" module="max" type="tutorial" />
		<seealso name="javascriptchapter03" module="max" type="tutorial" />
	</seealsolist>
</c74object>
