Where the # must be substituted by a number in megabytes (hence the "M" after it). Less or more memory can be allocated by using this parameter: You can check the current memory allocation by opening the pop-up menu in the applet, and the last submenu "About Jmol". Memory available to Jmol is determined by Java. Note: This can now be done using Jmol.js ( jmolSetMemoryMb(nMb)) or Jmol-JSO (moryLimit = nMb). Giving the Jmol applet more memory to work with This is the preferred method of using the signed applet. Modular signed applet JmolAppletSigned0.jar and related files, like JmolApplet0.jar, allows modular as-needed transfer of files from your site to the user's browser.The signed applet has substantially more capability, including full cross-domain file access and the capability to transfer files to and from the user's hard drive. Monolithic signed applet JmolAppletSigned.jar is a large (2.5+ MB) single file that includes all of Jmol in the form of a signed applet.This allows the applet to load much faster. Although a large number of files, the advantage of the modular applet is that only those parts of Jmol that are necessary are downloaded by the user's browser initially, and additional components are transferred only as needed. Modular unsigned applet You can include JmolApplet0.jar and related files (54 jar files total) on your site.If using Jmol.js, the applet will only have access to files on your site if using Jmol-JSO, the applet will have access to files on your site as well as files at public databases. Monolithic unsigned applet You can include JmolApplet.jar on your web site and just use that.Regardless of which JavaScript library is used, Jmol-JSO or Jmol.js, there are four different ways to implement Jmol as an applet: (From then on, the code for inserting the applet in the webpage must declare some permissions attribute.) If you cannot switch your website to using Jmol-JSO or using the transitional adapter Jmol2.js, you should start substituting your existing Jmol.js file with the updated Jmol.js ( download). Particularly, new security policies that are being enforced in Java will make the old versions of Jmol.js nonfunctional starting January 2014. If you still want to use it, you can get it individually from the Jmol repository. Note: The download for Jmol version 13.2 or later does not include this file. For an overview of these functions, see the Jmol.js online documentation or, for the most up-to-date info, just browse the Jmol.js source file. Note that all functions in Jmol.js have been implemented with counterparts in Jmol-JSO. Inclusion of Jmol applets and interaction with them are managed easily using a JavaScript-based solution:įor Jmol 12 (and Jmol 13, if desired), the Jmol.js library provides a set of simple scripting commands that allow rapid construction of web pages that include user interactivity such as buttons, checkboxes, links, and menus. If you distribute your web page files, you should also include the copyright, license and information files: COPYRIGHT.txt, LICENSE.txt and README.txt Inserting Jmol applets into web pages If the applet does not load, see also Solving Java Problems. on the hard disk or on CD, see Jmol Applet Deployment Local for some precautions needed.įor some specific needs, you must use other files read the sections below about the signed applet. To use the Jmol applet within local web pages, e.g. Which are those necessary files? Read subsections below. zip or tar.gz format) and extract/uncompress only the necessary files to the folder of your choice. If you wish to learn how to create web pages containing Jmol from scratch, read on.ĭownload the Jmol package (either. If you only wish to create a web page(s) containing molecular scenes in Jmol, there are easier ways than starting from scratch: see #Tools for Authoring Jmol Web Pages. Like with the application, commands can be applied to the model using the Scripting language. Java applet version of Jmol which allows Jmol to be embedded in web pages (given that viewers have a Java plugin installed). 6 Setting up a Jmol site in The Cloud, in an AWS S3 bucket.2.4 Forcing the JSmol applet to open in a certain language.2.3 Giving the Jmol applet more memory to work with.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |