Difference between revisions of "Sandbox"

From Jmol
Jump to navigation Jump to search
(Get the model from a different server)
(Jmol extension for MediaWiki)
Line 52: Line 52:
  
  
This one uses the <code>inlineContents</code> tag, with straight MOL data on the left applet and with added pipe characters (|) on the right applet:
+
This one uses the <code>inlineContents</code> tag:  
<table width="100%"><tr>
+
<table width="100%"><tr align="center">
<td>
+
<td>with straight MOL data:<br>
 
<jmol>
 
<jmol>
 
  <jmolApplet>
 
  <jmolApplet>
Line 104: Line 104:
 
</jmol>
 
</jmol>
 
</td>
 
</td>
<td>
+
<td>with added pipe characters (|):<br>
 
<jmol>
 
<jmol>
 
  <jmolApplet>
 
  <jmolApplet>
Line 159: Line 159:
 
Let's test the same with inline PDB data:
 
Let's test the same with inline PDB data:
 
<table width="100%"><tr>
 
<table width="100%"><tr>
<td>
+
<td><tr align="center">
 +
<td>with straight PDB data:<br>
 
<jmol>
 
<jmol>
 
  <jmolApplet>
 
  <jmolApplet>
Line 184: Line 185:
 
</jmol>
 
</jmol>
 
</td>
 
</td>
<td>
+
<td>with added pipe characters (|):<br>
 
<jmol>
 
<jmol>
 
  <jmolApplet>
 
  <jmolApplet>
Line 225: Line 226:
 
</jmol>
 
</jmol>
 
things work, so IT IS the newlines.
 
things work, so IT IS the newlines.
 
 
  
 
== Using a pop-up window ==
 
== Using a pop-up window ==

Revision as of 20:08, 1 December 2008

This is a page for testing.

Jmol extension for MediaWiki

This uses uploadedFileContents tag with an XYZ file:

For some reason, checkboxes are not working with the extension.

Color atoms:


This one uses the inlineContents tag:

with straight MOL data:
with added pipe characters (|):

None of them work. This seems due to a defective parsing of newlines by the extension.

Let's test the same with inline PDB data:

with straight PDB data:
with added pipe characters (|):

The right applet works. The difference with MOL format is likely because MOL requires the lines in a certain order, while PDB relies on the starting keyword. I think that the extension is inserting extra newlines and quotes, that spoil the MOL parser but not the PDB parser. The newlines are ignored by Jmol.js, or replaced by pipes. Manually added pipes restore a proper start of line for the PDB parser. --AngelHerraez 22:11, 30 November 2008 (CET)


Finally, if we insert the MOL data without any newlines and with pipes:

things work, so IT IS the newlines.

Using a pop-up window

An image used for illustration and a caption for requesting the Jmol model:

Ethane s.gif
Staggered ethane

Contributors

AngelHerraez