<divid=Content><divclass="CClass"><divclass=CTopicid=MainTopic><h1class=CTitle><aname="mxClient"></a>mxClient</h1><divclass=CBody><p>Bootstrapping mechanism for the mxGraph thin client. The production version of this file contains all code required to run the mxGraph thin client, as well as global constants to identify the browser and operating system in use. You may have to load chrome://global/content/contentAreaUtils.js in your page to disable certain security restrictions in Mozilla.</p><!--START_ND_SUMMARY--><divclass=Summary><divclass=STitle>Summary</div><divclass=SBorder><tableborder=0cellspacing=0cellpadding=0class=STable><trclass="SMain"><tdclass=SEntry><ahref="#mxClient">mxClient</a></td><tdclass=SDescription>Bootstrapping mechanism for the mxGraph thin client. </td></tr><trclass="SGroup SIndent1"><tdclass=SEntry><ahref="#mxClient.Variables">Variables</a></td><tdclass=SDescription></td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxClient.VERSION">VERSION</a></td><tdclass=SDescription>Contains the current version of the mxGraph library. </td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxClient.IS_IE"id=link1onMouseOver="ShowTip(event, 'tt1', 'link1')"onMouseOut="HideTip('tt1')">IS_IE</a></td><tdclass=SDescription>True if the current browser is Internet Explorer.</td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxClient.IS_IE6"id=link2onMouseOver="ShowTip(event, 'tt2', 'link2')"onMouseOut="HideTip('tt2')">IS_IE6</a></td><tdclass=SDescription>True if the current browser is Internet Explorer 6.x.</td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxClient.IS_QUIRKS"id=link3onMouseOver="ShowTip(event, 'tt3', 'link3')"onMouseOut="HideTip('tt3')">IS_QUIRKS</a></td><tdclass=SDescription>True if the current browser is Internet Explorer and it is in quirks mode.</td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxClient.VML_PREFIX">VML_PREFIX</a></td><tdclass=SDescription>Prefix for VML namespace in node names. </td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxClient.OFFICE_PREFIX">OFFICE_PREFIX</a></td><tdclass=SDescription>Prefix for VML office namespace in node names. </td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxClient.IS_NS"id=link4onMouseOver="ShowTip(event, 'tt4', 'link4')"onMouseOut="HideTip('tt4')">IS_NS</a></td><tdclass=SDescription>True if the current browser is Netscape (including Firefox).</td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxClient.IS_OP"id=link5onMouseOver="ShowTip(event, 'tt5', 'link5')"onMouseOut="HideTip('tt5')">IS_OP</a></td><tdclass=SDescription>True if the current browser is Opera.</td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxClient.IS_OT">IS_OT</a></td><tdclass=SDescription>True if -o-transform is available as a CSS style. </td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxClient.IS_SF"id=link6onMouseOver="ShowTip(event, 'tt6', 'link6')"onMouseOut="HideTip('tt6')">IS_SF</a></td><tdclass=SDescription>True if the current browser is Safari.</td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxClient.IS_IOS">IS_IOS</a></td><tdclass=SDescription>Returns true if the user agent is an iPad, iPhone or iPod.</td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxClient.IS_GC"id=link7onMouseOver="ShowTip(event, 'tt7', 'link7')"onMouseOut="HideTip('tt7')">IS_GC</a></td><tdclass=SDescription>True if the current browser is Google Chrome.</td></tr><trclass="SVariable SIndent2 SMarked"><tdclass=SEntry><ahref="#mxClient.IS_FF"id=link8onMouseOver="ShowTip(event, 'tt8', 'link8')"onMouseOut="HideTip('tt8')">IS_FF</a></td><tdclass=SDescription>True if the current browser is Firefox.</td></tr><trclass="SVariable SIndent2"><tdclass=SEntry><ahref="#mxClient.IS_MT">IS_MT</a></td><tdclass=SDescription>True if -moz-transform is available as a CSS style. </td><
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.VERSION"></a>VERSION</h3><divclass=CBody><p>Contains the current version of the mxGraph library. The strings that communicate versions of mxGraph use the following format.</p><p>versionMajor.versionMinor.buildNumber.revisionNumber</p><p>Current version is 2.3.0.4.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.IS_IE"></a>IS_IE</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>IS_IE: navigator.userAgent.indexOf(</td><tdclass=PParameternowrap>'MSIE'</td><tdclass=PAfterParametersnowrap>) ></td></tr></table></td></tr></table></blockquote><p>True if the current browser is Internet Explorer.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.IS_IE6"></a>IS_IE6</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>IS_IE6: navigator.userAgent.indexOf(</td><tdclass=PParameternowrap>'MSIE 6'</td><tdclass=PAfterParametersnowrap>) ></td></tr></table></td></tr></table></blockquote><p>True if the current browser is Internet Explorer 6.x.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.IS_QUIRKS"></a>IS_QUIRKS</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>IS_QUIRKS: navigator.userAgent.indexOf(</td><tdclass=PParameternowrap>'MSIE'</td><tdclass=PAfterParametersnowrap>) ></td></tr></table></td></tr></table></blockquote><p>True if the current browser is Internet Explorer and it is in quirks mode.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.VML_PREFIX"></a>VML_PREFIX</h3><divclass=CBody><p>Prefix for VML namespace in node names. Default is ‘v’.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.OFFICE_PREFIX"></a>OFFICE_PREFIX</h3><divclass=CBody><p>Prefix for VML office namespace in node names. Default is ‘o’.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.IS_NS"></a>IS_NS</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>IS_NS: navigator.userAgent.indexOf(</td><tdclass=PParameternowrap>'Mozilla/'</td><tdclass=PAfterParametersnowrap>) ></td></tr></table></td></tr></table></blockquote><p>True if the current browser is Netscape (including Firefox).</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.IS_OP"></a>IS_OP</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>IS_OP: navigator.userAgent.indexOf(</td><tdclass=PParameternowrap>'Opera/'</td><tdclass=PAfterParametersnowrap>) ></td></tr></table></td></tr></table></blockquote><p>True if the current browser is Opera.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.IS_OT"></a>IS_OT</h3><divclass=CBody><p>True if -o-transform is available as a CSS style. This is the case for Opera browsers that use Presto/2.5 and later.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.IS_SF"></a>IS_SF</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>IS_SF: navigator.userAgent.indexOf(</td><tdclass=PParameternowrap>'AppleWebKit/'</td><tdclass=PAfterParametersnowrap>) ></td></tr></table></td></tr></table></blockquote><p>True if the current browser is Safari.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.IS_IOS"></a>IS_IOS</h3><divclass=CBody><p>Returns true if the user agent is an iPad, iPhone or iPod.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.IS_GC"></a>IS_GC</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>IS_GC: navigator.userAgent.indexOf(</td><tdclass=PParameternowrap>'Chrome/'</td><tdclass=PAfterParametersnowrap>) ></td></tr></table></td></tr></table></blockquote><p>True if the current browser is Google Chrome.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.IS_FF"></a>IS_FF</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>IS_FF: navigator.userAgent.indexOf(</td><tdclass=PParameternowrap>'Firefox/'</td><tdclass=PAfterParametersnowrap>) ></td></tr></table></td></tr></table></blockquote><p>True if the current browser is Firefox.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.IS_MT"></a>IS_MT</h3><divclass=CBody><p>True if -moz-transform is available as a CSS style. This is the case for all Firefox-based browsers newer than or equal 3, such as Camino, Iceweasel, Seamonkey and Iceape.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.IS_SVG"></a>IS_SVG</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>IS_SVG: navigator.userAgent.indexOf(</td><tdclass=PParameternowrap>'Firefox/'</td><tdclass=PAfterParametersnowrap>) ></td></tr></table></td></tr></table></blockquote><p>True if the browser supports SVG.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.NO_FO"></a>NO_FO</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParameterscolspan=2>NO_FO: !document.createElementNS || document.createElementNS(</td></tr><tr><td> </td><tdclass=PParameternowrapwidth=100%>'http://www.w3.org/2000/svg',</td></tr><tr><td> </td><tdclass=PParameternowrapwidth=100%>'foreignObject'</td></tr><tr><tdclass=PAfterParameterscolspan=2>) !</td></tr></table></td></tr></table></blockquote><p>True if foreignObject support is not available. This is the case for Opera and older SVG-based browsers.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.IS_VML"></a>IS_VML</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>IS_VML: navigator.appName.toUpperCase()</td></tr></table></blockquote><p>True if the browser supports VML.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.IS_MAC"></a>IS_MAC</h3><divclass=CBody><p>True if the client is a Mac.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.IS_TOUCH"></a>IS_TOUCH</h3><divclass=CBody><p>True if this device supports touchstart/-move/-end events (Apple iOS, Android, Chromebook and Chrome Browser on touch-enabled devices).</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.IS_POINTER"></a>IS_POINTER</h3><divclass=CBody><p>True if this device supports MS pointer events.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.IS_LOCAL"></a>IS_LOCAL</h3><divclass=CBody><p>True if the documents location does not start with <ahref="http://"class=LURLtarget=_top>http://</a> or <ahref="https://"class=LURLtarget=_top>https://</a>.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxClient.isBrowserSupported"></a>isBrowserSupported</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>isBrowserSupported: function()</td></tr></table></blockquote><p>Returns true if the current browser is supported, that is, if <ahref="#mxClient.IS_VML"class=LVariableid=link20onMouseOver="ShowTip(event, 'tt11', 'link20')"onMouseOut="HideTip('tt11')">mxClient.IS_VML</a> or <ahref="#mxClient.IS_SVG"class=LVariableid=link21onMouseOver="ShowTip(event, 'tt9', 'link21')"onMouseOut="HideTip('tt9')">mxClient.IS_SVG</a> is true.</p><h4class=CHeading>Example</h4><blockquote><preclass="prettyprint">if (!mxClient.isBrowserSupported())
mxUtils.error('Browser is not supported!', 200, false);
}</pre></blockquote></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxClient.link"></a>link</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>link: function(</td><tdclass=PParameternowrap>rel,</td></tr><tr><td></td><tdclass=PParameternowrap>href,</td></tr><tr><td></td><tdclass=PParameternowrap>doc</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Adds a link node to the head of the document. Use this to add a stylesheet to the page as follows:</p><blockquote><preclass="prettyprint">mxClient.link('stylesheet', filename);</pre></blockquote><p>where filename is the (relative) URL of the stylesheet. The charset is hardcoded to ISO-8859-1 and the type is text/css.</p><h4class=CHeading>Parameters</h4><tableborder=0cellspacing=0cellpadding=0class=CDescriptionList><tr><tdclass=CDLEntry>rel</td><tdclass=CDLDescription>String that represents the rel attribute of the link node.</td></tr><tr><tdclass=CDLEntry>href</td><tdclass=CDLDescription>String that represents the href attribute of the link node.</td></tr><tr><tdclass=CDLEntry>doc</td><tdclass=CDLDescription>Optional parent document of the link node.</td></tr></table></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxClient.include"></a>include</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>include: function(</td><tdclass=PParameternowrap>src</td><tdclass=PAfterParametersnowrap>)</td></tr></table></td></tr></table></blockquote><p>Dynamically adds a script node to the document header.</p><p>In production environments, the includes are resolved in the mxClient.js file to reduce the number of requests required for client startup. This function should only be used in development environments, but not in production systems.</p></div></div></div>
<divclass="CFunction"><divclass=CTopic><h3class=CTitle><aname="mxClient.dispose"></a>dispose</h3><divclass=CBody><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td>dispose: function()</td></tr></table></blockquote><p>Frees up memory in IE by resolving cyclic dependencies between the DOM and the JavaScript objects.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.mxLoadResources"></a>mxLoadResources</h3><divclass=CBody><p>Optional global config variable to toggle loading of the two resource files in <ahref="view/mxGraph-js.html#mxGraph"class=LClassid=link22onMouseOver="ShowTip(event, 'tt16', 'link22')"onMouseOut="HideTip('tt16')">mxGraph</a> and <ahref="editor/mxEditor-js.html#mxEditor"class=LClassid=link23onMouseOver="ShowTip(event, 'tt17', 'link23')"onMouseOut="HideTip('tt17')">mxEditor</a>. Default is true. NOTE: This is a global variable, not a variable of mxClient.</p><blockquote><preclass="prettyprint"><script type="text/javascript">
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.mxResourceExtension"></a>mxResourceExtension</h3><divclass=CBody><p>Optional global config variable to specify the extension of resource files. Default is true. NOTE: This is a global variable, not a variable of mxClient.</p><blockquote><preclass="prettyprint"><script type="text/javascript">
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.mxLoadStylesheets"></a>mxLoadStylesheets</h3><divclass=CBody><p>Optional global config variable to toggle loading of the CSS files when the library is initialized. Default is true. NOTE: This is a global variable, not a variable of mxClient.</p><blockquote><preclass="prettyprint"><script type="text/javascript">
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.basePath"></a>basePath</h3><divclass=CBody><p>Basepath for all URLs in the core without trailing slash. Default is ‘.’. Set mxBasePath prior to loading the mxClient library as follows to override this setting:</p><blockquote><preclass="prettyprint"><script type="text/javascript">
mxBasePath = '/path/to/core/directory';
</script>
<script type="text/javascript" src="/path/to/core/directory/js/mxClient.js"></script></pre></blockquote><p>When using a relative path, the path is relative to the URL of the page that contains the assignment. Trailing slashes are automatically removed.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.imageBasePath"></a>imageBasePath</h3><divclass=CBody><p>Basepath for all images URLs in the core without trailing slash. Default is <ahref="#mxClient.basePath"class=LVariableid=link24onMouseOver="ShowTip(event, 'tt18', 'link24')"onMouseOut="HideTip('tt18')">mxClient.basePath</a> + ‘/images’. Set mxImageBasePath prior to loading the mxClient library as follows to override this setting:</p><blockquote><preclass="prettyprint"><script type="text/javascript">
<script type="text/javascript" src="/path/to/core/directory/js/mxClient.js"></script></pre></blockquote><p>When using a relative path, the path is relative to the URL of the page that contains the assignment. Trailing slashes are automatically removed.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.language"></a>language</h3><divclass=CBody><p>Defines the language of the client, eg. en for english, de for german etc. The special value ‘none’ will disable all built-in internationalization and resource loading. See <ahref="util/mxResources-js.html#mxResources.getSpecialBundle"class=LFunctionid=link25onMouseOver="ShowTip(event, 'tt19', 'link25')"onMouseOut="HideTip('tt19')">mxResources.getSpecialBundle</a> for handling identifiers with and without a dash.</p><p>Set mxLanguage prior to loading the mxClient library as follows to override this setting:</p><blockquote><preclass="prettyprint"><script type="text/javascript">
<script type="text/javascript" src="js/mxClient.js"></script></pre></blockquote><p>If internationalization is disabled, then the following variables should be overridden to reflect the current language of the system. These variables are cleared when i18n is disabled. <ahref="editor/mxEditor-js.html#mxEditor.askZoomResource"class=LVariableid=link26onMouseOver="ShowTip(event, 'tt20', 'link26')"onMouseOut="HideTip('tt20')">mxEditor.askZoomResource</a>, <ahref="editor/mxEditor-js.html#mxEditor.lastSavedResource"class=LVariableid=link27onMouseOver="ShowTip(event, 'tt21', 'link27')"onMouseOut="HideTip('tt21')">mxEditor.lastSavedResource</a>, <ahref="editor/mxEditor-js.html#mxEditor.currentFileResource"class=LVariableid=link28onMouseOver="ShowTip(event, 'tt22', 'link28')"onMouseOut="HideTip('tt22')">mxEditor.currentFileResource</a>, <ahref="editor/mxEditor-js.html#mxEditor.propertiesResource"class=LVariableid=link29onMouseOver="ShowTip(event, 'tt23', 'link29')"onMouseOut="HideTip('tt23')">mxEditor.propertiesResource</a>, <ahref="editor/mxEditor-js.html#mxEditor.tasksResource"class=LVariableid=link30onMouseOver="ShowTip(event, 'tt24', 'link30')"onMouseOut="HideTip('tt24')">mxEditor.tasksResource</a>, <ahref="editor/mxEditor-js.html#mxEditor.helpResource"class=LVariableid=link31onMouseOver="ShowTip(event, 'tt25', 'link31')"onMouseOut="HideTip('tt25')">mxEditor.helpResource</a>, <ahref="editor/mxEditor-js.html#mxEditor.outlineResource"class=LVariableid=link32onMouseOver="ShowTip(event, 'tt26', 'link32')"onMouseOut="HideTip('tt26')">mxEditor.outlineResource</a>, <ahref="handler/mxElbowEdgeHandler-js.html#mxElbowEdgeHandler.doubleClickOrientationResource"class=LVariableid=link33onMouseOver="ShowTip(event, 'tt27', 'link33')"onMouseOut="HideTip('tt27')">mxElbowEdgeHandler.doubleClickOrientationResource</a>, <ahref="util/mxUtils-js.html#mxUtils.errorResource"class=LVariableid=link34onMouseOver="ShowTip(event, 'tt28', 'link34')"onMouseOut="HideTip('tt28')">mxUtils.errorResource</a>, <ahref="util/mxUtils-js.html#mxUtils.closeResource"class=LVariableid=link35onMouseOver="ShowTip(event, 'tt29', 'link35')"onMouseOut="HideTip('tt29')">mxUtils.closeResource</a>, <ahref="view/mxGraphSelectionModel-js.html#mxGraphSelectionModel.doneResource"class=LVariableid=link36onMouseOver="ShowTip(event, 'tt30', 'link36')"onMouseOut="HideTip('tt30')">mxGraphSelectionModel.doneResource</a>, <ahref="view/mxGraphSelectionModel-js.html#mxGraphSelectionModel.updatingSelectionResource"class=LVariableid=link37onMouseOver="ShowTip(event, 'tt31', 'link37')"onMouseOut="HideTip('tt31')">mxGraphSelectionModel.updatingSelectionResource</a>, <ahref="view/mxGraphView-js.html#mxGraphView.doneResource"class=LVariableid=link38onMouseOver="ShowTip(event, 'tt32', 'link38')"onMouseOut="HideTip('tt32')">mxGraphView.doneResource</a>, <ahref="view/mxGraphView-js.html#mxGraphView.updatingDocumentResource"class=LFunctionid=link39onMouseOver="ShowTip(event, 'tt33', 'link39')"onMouseOut="HideTip('tt33')">mxGraphView.updatingDocumentResource</a>, <mxCellRenderer.collapseExpandResource>, <ahref="view/mxGraph-js.html#mxGraph.containsValidationErrorsResource"class=LVariableid=link40onMouseOver="ShowTip(event, 'tt34', 'link40')"onMouseOut="HideTip('tt34')">mxGraph.containsValidationErrorsResource</a> and <ahref="view/mxGraph-js.html#mxGraph.alreadyConnectedResource"class=LVariableid=link41onMouseOver="ShowTip(event, 'tt35', 'link41')"onMouseOut="HideTip('tt35')">mxGraph.alreadyConnectedResource</a>.</p></div></div></div>
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.defaultLanguage"></a>defaultLanguage</h3><divclass=CBody><p>Defines the default language which is used in the common resource files. Any resources for this language will only load the common resource file, but not the language-specific resource file. Default is ‘en’.</p><p>Set mxDefaultLanguage prior to loading the mxClient library as follows to override this setting:</p><blockquote><preclass="prettyprint"><script type="text/javascript">
<divclass="CVariable"><divclass=CTopic><h3class=CTitle><aname="mxClient.languages"></a>languages</h3><divclass=CBody><p>Defines the optional array of all supported language extensions. The default language does not have to be part of this list. See <mxResources.isLanguageSupported>.</p><blockquote><preclass="prettyprint"><script type="text/javascript">
mxLanguages = ['de', 'it', 'fr'];
</script>
<script type="text/javascript" src="js/mxClient.js"></script></pre></blockquote><p>This is used to avoid unnecessary requests to language files, ie. if a 404 will be returned.</p></div></div></div>
</div><!--Content-->
<divid=Footer><ahref="http://www.naturaldocs.org">Generated by Natural Docs</a></div><!--Footer-->
<divclass=CToolTipid="tt1"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>IS_IE: navigator.userAgent.indexOf(</td><tdclass=PParameternowrap>'MSIE'</td><tdclass=PAfterParametersnowrap>) ></td></tr></table></td></tr></table></blockquote>True if the current browser is Internet Explorer.</div></div><divclass=CToolTipid="tt2"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>IS_IE6: navigator.userAgent.indexOf(</td><tdclass=PParameternowrap>'MSIE 6'</td><tdclass=PAfterParametersnowrap>) ></td></tr></table></td></tr></table></blockquote>True if the current browser is Internet Explorer 6.x.</div></div><divclass=CToolTipid="tt3"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>IS_QUIRKS: navigator.userAgent.indexOf(</td><tdclass=PParameternowrap>'MSIE'</td><tdclass=PAfterParametersnowrap>) ></td></tr></table></td></tr></table></blockquote>True if the current browser is Internet Explorer and it is in quirks mode.</div></div><divclass=CToolTipid="tt4"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>IS_NS: navigator.userAgent.indexOf(</td><tdclass=PParameternowrap>'Mozilla/'</td><tdclass=PAfterParametersnowrap>) ></td></tr></table></td></tr></table></blockquote>True if the current browser is Netscape (including Firefox).</div></div><divclass=CToolTipid="tt5"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>IS_OP: navigator.userAgent.indexOf(</td><tdclass=PParameternowrap>'Opera/'</td><tdclass=PAfterParametersnowrap>) ></td></tr></table></td></tr></table></blockquote>True if the current browser is Opera.</div></div><divclass=CToolTipid="tt6"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>IS_SF: navigator.userAgent.indexOf(</td><tdclass=PParameternowrap>'AppleWebKit/'</td><tdclass=PAfterParametersnowrap>) ></td></tr></table></td></tr></table></blockquote>True if the current browser is Safari.</div></div><divclass=CToolTipid="tt7"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>IS_GC: navigator.userAgent.indexOf(</td><tdclass=PParameternowrap>'Chrome/'</td><tdclass=PAfterParametersnowrap>) ></td></tr></table></td></tr></table></blockquote>True if the current browser is Google Chrome.</div></div><divclass=CToolTipid="tt8"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>IS_FF: navigator.userAgent.indexOf(</td><tdclass=PParameternowrap>'Firefox/'</td><tdclass=PAfterParametersnowrap>) ></td></tr></table></td></tr></table></blockquote>True if the current browser is Firefox.</div></div><divclass=CToolTipid="tt9"><divclass=CVariable><blockquote><tableborder=0cellspacing=0cellpadding=0class="Prototype prettyprint"><tr><td><tableborder=0cellspacing=0cellpadding=0><tr><tdclass=PBeforeParametersnowrap>IS_SVG: navigator.userAgent.indexOf(</td><tdclass=PParameternowrap>'Firefox/'</td><tdclass=PAfterParametersnowrap>) ></td></tr></table></td></tr></table></blockquote>True if the brow